/* 基本スタイル */
:root {
    --primary-color: #ff5252; /* 赤色系に変更、はさみをイメージ */
    --secondary-color: #4caf50; /* 緑色は料理・食材のイメージ */
    --accent-color: #ff9800;
    --error-color: #cc0000;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --gradient-start: #ff5252;
    --gradient-end: #ff9190;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* ヘッダー・ロゴ */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.logo-icon {
    font-size: 2.5rem;
    margin-right: 0.5rem;
}

h1 {
    font-family: 'Poppins', 'Noto Sans JP', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
    margin: 0;
}

h1 .accent {
    color: var(--primary-color);
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* メインコンテンツ */
main {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

section {
    margin-bottom: 2rem;
}

/* フォーム */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: bold;
    font-size: 1.1rem;
}

.input-wrapper {
    display: flex;
    align-items: stretch;
}

input[type="text"] {
    flex: 1;
    padding: 0.85rem;
    border: 2px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

button {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
}

/* 非活性状態のボタンスタイル */
button:disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.7;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* キャンセルボタン */
.cancel-button {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    margin: 1rem auto 0;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 180px;
    text-align: center;
}

.cancel-button:hover {
    background: #d32f2f;
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.3);
}

/* 結果表示 */
.result-section {
    text-align: center;
    padding: 1.5rem;
}

.result-success, .result-error {
    padding: 2rem;
    border-radius: 12px;
}

.result-success {
    background-color: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.result-error {
    background-color: rgba(255, 82, 82, 0.08);
    border: 1px solid rgba(255, 82, 82, 0.3);
}

.button {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1.5rem;
    transition: all 0.3s;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 82, 82, 0.3);
}

.button-secondary {
    background: #f5f5f5;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.button-secondary:hover {
    background-color: #eaeaea;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* フッター */
footer {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    margin-top: 2rem;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    main {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .input-wrapper {
        flex-direction: column;
    }
    
    input[type="text"] {
        border-radius: 8px;
        margin-bottom: 0.8rem;
    }
    
    button {
        border-radius: 8px;
        width: 100%;
    }
} 

/* 進捗状況 */
/* 進捗バー関連スタイルを削除 */

.status-message {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 1rem;
    color: #666;
} 

/* ローディングアニメーション */
.loading-animation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
}

.loading-circle {
    display: block;
    width: 80px;
    height: 80px;
}

.loading-circle:after {
    content: " ";
    display: block;
    width: 64px;
    height: 64px;
    margin: 8px;
    border-radius: 50%;
    border: 6px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: loading-circle 1.2s linear infinite;
}

@keyframes loading-circle {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 料理とはさみのローディングテーマ */
.cooking-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.cooking-loader .pot {
    position: absolute;
    width: 70px;
    height: 45px;
    background: #ff5252;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 10px 10px;
}

.cooking-loader .pot:before {
    content: "";
    position: absolute;
    width: 90px;
    height: 15px;
    background: #ff5252;
    top: -10px;
    left: -10px;
    border-radius: 10px;
}

.cooking-loader .steam {
    position: absolute;
    width: 10px;
    height: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    bottom: 65px;
    left: 40px;
    animation: steam 1.5s linear infinite;
}

.cooking-loader .steam:nth-child(2) {
    left: 60px;
    animation-delay: 0.5s;
}

.cooking-loader .steam:nth-child(3) {
    left: 80px;
    animation-delay: 1s;
}

@keyframes steam {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-30px);
    }
}

/* ハサミアニメーション */
.scissors-loader {
    position: relative;
    width: 100px;
    height: 80px;
    margin: 0 auto;
}

.scissors-loader .blade {
    position: absolute;
    width: 60px;
    height: 10px;
    background: #ff5252;
    left: 20px;
    top: 35px;
    border-radius: 5px 20px 0 0;
    transform-origin: left center;
    animation: cut 1.5s ease-in-out infinite;
}

.scissors-loader .blade:after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: #ff5252;
    border-radius: 50%;
    left: -10px;
    top: -3px;
}

.scissors-loader .blade:nth-child(2) {
    transform: rotateX(180deg);
    animation-delay: 0.75s;
}

@keyframes cut {
    0%, 100% {
        transform: rotate(-25deg);
    }
    50% {
        transform: rotate(25deg);
    }
}

/* --- 野菜アニメーション（自然な配置・形状に修正） --- */
.vege-loader {
    position: relative;
    width: 220px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 18px;
    z-index: 1;
}
.vege {
    position: relative;
    display: inline-block;
    animation: vege-bounce 1.8s infinite cubic-bezier(.68,-0.55,.27,1.55);
}
.vege.carrot {
    width: 24px;
    height: 60px;
    background: linear-gradient(180deg, #ffb347 0%, #ff7f50 100%);
    border-radius: 12px 12px 18px 18px/18px 18px 40px 40px;
    margin-bottom: 0;
    box-shadow: 0 2px 8px #ff7f5022;
    animation-delay: 0s;
}
.vege.carrot:before {
    content: '';
    position: absolute;
    top: -18px;
    left: 5px;
    width: 12px;
    height: 20px;
    background: linear-gradient(135deg, #4caf50 60%, #388e3c 100%);
    border-radius: 8px 8px 0 0;
    z-index: 2;
    transform: rotate(-10deg);
}
.vege.carrot:after {
    content: '';
    position: absolute;
    top: -12px;
    left: 15px;
    width: 8px;
    height: 16px;
    background: #81c784;
    border-radius: 8px 8px 0 0;
    z-index: 1;
    transform: rotate(18deg);
}
.vege.tomato {
    width: 38px;
    height: 38px;
    background: radial-gradient(circle at 60% 40%, #ff5252 80%, #c62828 100%);
    border-radius: 50%;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px #ff525222;
    animation-delay: 0.3s;
}
.vege.tomato:before {
    content: '';
    position: absolute;
    top: -12px;
    left: 13px;
    width: 12px;
    height: 8px;
    background: #4caf50;
    border-radius: 8px 8px 0 0;
    transform: rotate(-18deg);
}
.vege.tomato:after {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 8px;
    height: 6px;
    background: #388e3c;
    border-radius: 8px 8px 0 0;
    transform: rotate(18deg);
}
.vege.eggplant {
    width: 28px;
    height: 48px;
    background: linear-gradient(180deg, #8e24aa 60%, #512da8 100%);
    border-radius: 50% 50% 60% 60%/60% 60% 100% 100%;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px #8e24aa22;
    animation-delay: 0.6s;
}
.vege.eggplant:before {
    content: '';
    position: absolute;
    top: -14px;
    left: 8px;
    width: 12px;
    height: 14px;
    background: linear-gradient(135deg, #7cb342 60%, #388e3c 100%);
    border-radius: 8px 8px 0 0;
    transform: rotate(-10deg);
}
.vege.leaf {
    width: 28px;
    height: 44px;
    background: linear-gradient(135deg, #81c784 60%, #388e3c 100%);
    border-radius: 60% 40% 60% 80%/80% 60% 100% 100%;
    margin-bottom: 0;
    box-shadow: 0 2px 8px #81c78422;
    animation-delay: 0.9s;
    transform: rotate(-12deg);
}
.vege.leaf:before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    width: 12px;
    height: 24px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    transform: rotate(-18deg);
}
.vege.meat {
    width: 38px;
    height: 28px;
    background: linear-gradient(180deg, #ffb6b6 60%, #e57373 100%);
    border-radius: 60% 40% 60% 40%/60% 60% 80% 80%;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px #e5737322;
    animation-delay: 1.2s;
    position: relative;
}
.vege.meat:before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    width: 22px;
    height: 6px;
    background: linear-gradient(90deg, #fff 60%, #ffe0e0 100%);
    border-radius: 8px 12px 8px 12px;
    opacity: 0.7;
}

@keyframes vege-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-16px) scale(1.08, 0.92); }
    40% { transform: translateY(0) scale(1); }
    60% { transform: translateY(-7px) scale(0.96, 1.04); }
    80% { transform: translateY(0) scale(1); }
}

/* --- 湯気アニメーション削除 --- */
.cooking-steam { display: none !important; } 

/* ハンバーガー＋スケボーアニメーション */
.burger-skate-anim {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    margin: 32px 0 16px 0;
}
.burger-skater {
    position: absolute;
    left: -140px;
    bottom: 10px;
    width: 120px;
    height: 110px;
    animation: burger-skate-move 6s linear infinite;
    z-index: 2;
}
@keyframes burger-skate-move {
    0% { left: -140px; }
    100% { left: calc(100% + 20px); }
}

/* ハンバーガー本体 */
.burger-body {
    position: absolute;
    left: 30px;
    bottom: 45px;
    width: 60px;
    height: 20px;
    background: #ffcc80;
    border-radius: 30px 30px 5px 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 5;
}
.burger-face {
    position: absolute;
    left: 15px;
    top: 2px;
    width: 30px;
    height: 16px;
    z-index: 6;
}
.burger-eye {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    margin: 0 1px;
    position: relative;
    box-shadow: 0 0 0 1px #5d4037;
    overflow: hidden;
    animation: burger-blink 4s infinite;
}
.burger-eye:before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    background: #5d4037;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}
.burger-eye:after {
    content: "";
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    top: 1px;
    left: 4px;
    box-shadow: 0px 0px 2px 1px rgba(255, 255, 255, 0.8);
}
.burger-eyebrow {
    position: absolute;
    width: 7px;
    height: 2px;
    background: #5d4037;
    border-radius: 4px;
    top: -3px;
    left: 2px;
    transform: rotate(-10deg);
}
.burger-eyebrow.right {
    left: 21px;
    transform: rotate(10deg);
}
.burger-mouth {
    display: none;
}
.burger-cheek {
    position: absolute;
    width: 6px;
    height: 4px;
    background: rgba(255, 99, 71, 0.4);
    border-radius: 50%;
    top: 7px;
    left: 0px;
}
.burger-cheek.right {
    left: 24px;
}

/* スケボー */
.burger-skateboard {
    position: absolute;
    left: 35px;
    bottom: 4px;
    width: 50px;
    height: 10px;
    background: #795548;
    border-radius: 5px;
    z-index: 1;
}
.burger-wheel {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd54f;
    border-radius: 50%;
    bottom: 0px;
    z-index: 2;
    box-shadow: 0 0 0 2px #5d4037;
}
.burger-wheel.left { left: 40px; }
.burger-wheel.right { left: 70px; }

/* 足・靴 */
.burger-leg {
    position: absolute;
    width: 6px;
    height: 20px;
    background: #5d4037;
    left: 45px;
    bottom: 12px;
    border-radius: 3px;
    z-index: 2;
    transform: rotate(10deg);
}
.burger-leg.right {
    left: 65px;
    transform: rotate(-10deg);
}
.burger-shoe {
    position: absolute;
    width: 14px;
    height: 8px;
    background: #f44336;
    border-radius: 5px;
    bottom: 9px;
    left: 42px;
    z-index: 3;
    border: 1px solid #fff;
}
.burger-shoe.right {
    left: 62px;
}

/* 顔のアニメーション */
@keyframes burger-blink {
    0%, 95%, 100% { transform: scaleY(1); }
    97% { transform: scaleY(0.3); }
}

@keyframes burger-eye-move {
    0%, 100% { transform: translateX(0); }
    30% { transform: translateX(-1px); }
    60% { transform: translateX(1px); }
}

.burger-skater:hover .burger-eye:before {
    transform: scale(0.8) translateX(-1px);
}

.burger-seed {
    position: absolute;
    width: 3px;
    height: 2px;
    background: #fff8e1;
    border-radius: 50%;
    top: 4px;
    left: 10px;
    box-shadow: 8px 1px 0 #fff8e1, 16px 0px 0 #fff8e1, 24px 2px 0 #fff8e1, 38px 1px 0 #fff8e1;
    opacity: 0.8;
}
.burger-middle {
    position: absolute;
    left: 30px;
    bottom: 35px;
    width: 60px;
    height: 16px;
    z-index: 4;
}
.burger-lettuce {
    position: absolute;
    left: 30px;
    bottom: 43px;
    width: 66px;
    height: 8px;
    background: #8bc34a;
    border-radius: 15px 15px 5px 5px;
    z-index: 4;
}
.burger-lettuce:before {
    content: '';
    position: absolute;
    left: 8px;
    top: -2px;
    width: 10px;
    height: 6px;
    background: #aed581;
    border-radius: 50%;
    box-shadow: 14px 1px 0 #aed581, 28px 0 0 #aed581, 42px 2px 0 #aed581;
}
.burger-tomato {
    position: absolute;
    left: 30px;
    bottom: 38px;
    width: 60px;
    height: 6px;
    background: #e53935;
    border-radius: 5px;
    z-index: 3;
}
.burger-patty {
    position: absolute;
    left: 30px;
    bottom: 30px;
    width: 60px;
    height: 10px;
    background: #5d4037;
    border-radius: 5px;
    z-index: 2;
}
.burger-bottom {
    position: absolute;
    left: 30px;
    bottom: 25px;
    width: 60px;
    height: 15px;
    background: #ffcc80;
    border-radius: 5px 5px 20px 20px;
    z-index: 1;
}

/* 手（側面に配置） */
.burger-arm {
    position: absolute;
    width: 15px;
    height: 5px;
    background: #ffb74d;
    border-radius: 3px;
    bottom: 55px;
    left: 20px;
    z-index: 3;
    transform: rotate(30deg);
}
.burger-arm.right {
    left: 85px;
    transform: rotate(-30deg);
}
.burger-hand {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    bottom: 60px;
    left: 12px;
    z-index: 3;
    border: 1px solid #ffb74d;
}
.burger-hand.right {
    left: 100px;
} 
