/* 
 * 東海かいごキャリア - レスポンシブスタイルシート
 * responsive.css
 */

/* スマホ向け（全サイズ） */
@media (max-width: 767px) {
    header {
        padding: 4px 0;
    }
    
    .logo img {
        height: 20px;
    }
    
    .container {
        padding: 0 5px;
        width: 100%;
    }
    
    .hero-section {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 6px 4px;
        gap: 4px;
        margin-bottom: 4px;
    }
    
    .hero-text {
        flex: 1;
        padding-right: 0;
        text-align: left;
    }
    
    .hero-image {
        flex: 0.5;
        max-width: 75px;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }
    
    .hero-image img.counselor-image {
        max-height: 85px;
        width: auto;
    }
    
    .hero-section h1 {
        font-size: 11px;
        margin-bottom: 2px;
        line-height: 1.2;
    }
    
    .hero-section h2 {
        font-size: 12px;
        line-height: 1.2;
        margin-bottom: 0;
    }
    
    .highlight {
        font-size: 13px;
        display: inline;
    }
    
    .emphasis {
        font-size: 14px;
        display: inline;
    }
    
    .normal-text {
        font-size: 11px;
        display: inline;
    }
    
    .small-connector,
    .small-text,
    .separator {
        font-size: 9px;
    }
    
    .steps-nav {
        justify-content: center;
        flex-wrap: nowrap;
        margin: 5px 0 6px;
        padding: 0 8px;
    }
    
    .step-item {
        width: 38px;
        height: 38px;
        font-size: 8px;
        margin: 0 3px;
        padding: 0 1px;
        line-height: 1;
    }
    
    .step-item:not(:last-child):after {
        right: -8px;
        width: 5px;
    }
    
    #step-content {
        margin-top: 4px;
    }
    
    .step-content-inner {
        padding: 6px 6px;
        border-radius: 5px;
    }
    
    .step-content-inner h3 {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .options-grid {
        gap: 5px;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 8px;
    }
    
    .option-item {
        padding: 5px 2px;
        border-width: 1px;
    }
    
    #step1-content .option-item,
    #step2-content .option-item,
    #step3-content .option-item,
    #step4-content .option-item {
        height: 77px;
        width: calc(100% - 4px);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 14px 12px;
        border-width: 2px;
        box-sizing: border-box;
    }
    
    #step3-content .full-width.option-item {
        height: 77px;
        padding: 14px 12px;
    }
    
    #step1-content .option-item p,
    #step2-content .option-item p,
    #step3-content .option-item p,
    #step4-content .option-item p {
        font-size: 12.6px;
        font-weight: bold;
        line-height: 1.3;
        max-width: 85%;
        margin: 0 auto;
        box-sizing: border-box;
        padding: 0 8px;
        word-break: break-word;
    }
    
    .option-item img {
        width: 34px;
        height: 34px;
        margin-bottom: 10px;
    }
    
    .option-item p {
        font-size: 9px;
    }
    
    .navigation-buttons {
        margin-top: 10px;
    }
    
    .next-button, .back-button {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
        height: auto;
        min-height: 40px;
    }
    
    .submit-button {
        padding: 9px 18px;
        font-size: 14px;
        min-height: 44px;
    }
    
    main {
        margin-bottom: 0;
    }
}

/* スマホ縦向き（特に小さい画面）向け最適化 */
@media (max-width: 375px) {
    .container {
        padding: 0 2px;
    }
    
    .logo img {
        height: 18px;
    }
    
    .step-item {
        width: 34px;
        height: 34px;
        font-size: 7px;
        margin: 0 2px;
    }
    
    .step-item:not(:last-child):after {
        right: -6px;
        width: 3px;
    }
    
    #step1-content .option-item,
    #step2-content .option-item,
    #step3-content .option-item,
    #step4-content .option-item,
    #step3-content .full-width.option-item {
        height: 71px;
        padding: 12px 10px;
    }
    
    #step1-content .option-item p,
    #step2-content .option-item p,
    #step3-content .option-item p,
    #step4-content .option-item p {
        font-size: 11.7px;
        padding: 0 6px;
        max-width: 88%;
    }
    
    .option-item img {
        width: 30px;
        height: 30px;
        margin-bottom: 8px;
    }
    
    .options-grid {
        gap: 4px;
    }
    
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    select {
        height: 30px;
        padding: 5px;
        font-size: 11px;
    }
    
    .hero-section {
        padding: 5px 2px;
    }
    
    .hero-section h1 {
        font-size: 10px;
    }
    
    .hero-section h2 {
        font-size: 11px;
    }
    
    .highlight {
        font-size: 12px;
    }
    
    .emphasis {
        font-size: 13px;
    }
    
    .normal-text {
        font-size: 10px;
    }
    
    .hero-image {
        max-width: 70px;
    }
    
    .hero-image img.counselor-image {
        max-height: 80px;
    }
    
    .steps-nav {
        margin: 3px 0 5px;
        padding: 0 6px;
    }
    
    .bubble-container {
        top: -4px;
        right: -10px;
    }
    
    .bubble {
        padding: 1px 3px;
        font-size: 7px;
    }
    
    .bubble .easy {
        font-size: 7px;
    }
    
    .bubble .seconds {
        font-size: 9px;
    }
    
    .option-item p {
        font-size: 9px;
    }
    
    .step-content-inner h3 {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .next-button, .back-button {
        padding: 7px 14px;
        font-size: 12px;
        min-height: 38px;
    }
    
    .submit-button {
        padding: 8px 16px;
        font-size: 13px;
        min-height: 40px;
    }
}

/* スマホ向け標準（376px-767px）の調整 */
@media (min-width: 376px) and (max-width: 767px) {
    .container {
        padding: 0 6px;
    }
    
    .hero-section h1 {
        font-size: 11px;
    }
    
    .hero-section h2 {
        font-size: 12px;
    }
    
    .highlight {
        font-size: 13px;
    }
    
    .emphasis {
        font-size: 14px;
    }
    
    .normal-text {
        font-size: 11px;
    }
    
    .step-item {
        width: 38px;
        height: 38px;
        font-size: 8px;
        margin: 0 3px;
    }
    
    .step-item:not(:last-child):after {
        right: -8px;
        width: 4px;
    }
    
    #step1-content .option-item,
    #step2-content .option-item,
    #step3-content .option-item,
    #step4-content .option-item,
    #step3-content .full-width.option-item {
        height: 82px;
        padding: 16px 14px;
    }
    
    #step1-content .option-item p,
    #step2-content .option-item p,
    #step3-content .option-item p,
    #step4-content .option-item p {
        font-size: 13.5px;
        padding: 0 10px;
        max-width: 90%;
    }
    
    .next-button, .back-button {
        padding: 9px 18px;
        font-size: 14px;
        min-height: 42px;
    }
    
    .submit-button {
        padding: 10px 20px;
        font-size: 15px;
        min-height: 46px;
    }
}

/* タブレット向け調整 */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: 15px 10px;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .hero-section h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .hero-section h2 {
        font-size: 26px;
        margin-bottom: 10px;
    }
    
    .hero-image {
        max-width: 220px;
    }
    
    .hero-image img.counselor-image {
        max-height: 220px;
    }
    
    .step-content-inner {
        padding: 15px;
    }
    
    .options-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .option-item {
        padding: 12px;
    }
    
    .option-item img {
        width: 50px;
        height: 50px;
        margin-bottom: 6px;
    }
    
    .option-item p {
        font-size: 14px;
    }
    
    .steps-nav {
        margin: 10px 0 12px;
    }
    
    .step-item {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

/* デスクトップ向け調整 */
@media (min-width: 1024px) {
    .hero-section {
        padding: 20px 15px;
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .hero-section h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .hero-section h2 {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .hero-image {
        max-width: 280px;
    }
    
    .hero-image img.counselor-image {
        max-height: 280px;
    }
    
    .step-content-inner {
        padding: 20px;
    }
    
    .option-item img {
        width: 60px;
        height: 60px;
    }
    
    .step-item {
        width: 48px;
        height: 48px;
        font-size: 14px;
    }
}

/* 全てのスクリーンサイズで基本設定 */
.logo {
    padding: 8px 15px;
}

.logo img {
    height: 30px;
    margin: 0 auto;
}

/* スマホ向け（全サイズ） */
@media (max-width: 767px) {
    .logo {
        padding: 3px 6px;
    }
    
    .logo img {
        height: 20px;
    }
}

/* 特に小さいスマホ画面 */
@media (max-width: 375px) {
    .logo {
        padding: 2px 5px;
    }
    
    .logo img {
        height: 18px;
    }
}