/*
 * weatherplant.net スタイルシート
 * 見やすさとコピーのしやすさを最優先
 */

/* === ベーススタイル === */
body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

main {
    background-color: #fff;
    padding: 30px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px; /* メインコンテンツの幅を狭くし、モバイルでの見やすさを向上 */
    width: 90%;
}

header {
    text-align: center;
    margin-bottom: 25px;
}

header h1 {
    font-size: 2.0em;
    color: #00796b;
    margin-bottom: 5px;
}

#current-date-display {
    color: #666;
    font-size: 1.0em;
    font-weight: bold;
    margin-bottom: 20px;
}

/* === フォームコントロール === */
section {
    margin-bottom: 25px;
    padding: 10px 0;
}

.control-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: white; /* selectの背景を白に */
}

select:focus {
    border-color: #00796b;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 121, 107, 0.3);
}

/* === ボタン共通スタイル === */
#get-weather-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
    background-color: #00796b;
    color: white;
}

#get-weather-button:hover {
    background-color: #00695c;
}

/* 無効化されたボタンのスタイル */
button:disabled {
    background-color: #cccccc !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* === 出力セクション === */
#output-section {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* 出力ヘッダー (タイトルとコピーボタンを横並びにする) */
#output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

#output-header h3 {
    font-size: 1.2em;
    color: #333;
    margin: 0;
}

/* コピーアイコンボタンのスタイル */
.icon-button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 40px; /* 小さな正方形 */
    height: 40px;
    padding: 0;
    font-size: 1.3em;
    color: #00796b;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.icon-button:hover:not(:disabled) {
    background-color: #e0f2f1;
    color: #004d40;
}

#weather-output {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    resize: vertical;
    font-family: 'Consolas', 'Courier New', monospace; /* 等幅フォントを優先 */
    font-size: 1.0em;
    background-color: #e8f5e9;
    white-space: pre-wrap; /* 改行を保持 */
}

.status-message {
    font-size: 0.9em;
    margin-top: 8px;
    min-height: 18px;
}

footer {
    text-align: center;
    padding: 15px;
    color: #999;
    font-size: 0.8em;
}

#adsense-footer {
    margin-top: 10px;
    min-height: 50px;
    background-color: #eee;
    border-radius: 4px;
    line-height: 50px;
}