/* 基本スタイル - base.css */

/* 全体のスタイル */
body {
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.5;
  width: 100%;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
}

.app-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  min-height: 100vh;
  box-sizing: border-box;
}

/* 見出しスタイル */
h1 {
  color: #333;
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 15px;
}

h3 {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

/* ヘッダーとフッター */
header {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

footer {
  margin-top: 30px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  text-align: center;
  color: #666;
  font-size: 14px;
}

/* フッターリンクのスタイル */
.footer-links {
  text-align: center;
  margin-bottom: 10px;
}

.footer-link {
  color: #4285F4;
  text-decoration: none;
  margin: 0 10px;
  font-size: 14px;
}

.footer-link:hover {
  text-decoration: underline;
}

/* アラートメッセージ */
.alert {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* エラーメッセージスタイル */
.error-message {
  background-color: #ffeeee;
  border: 1px solid #ffaaaa;
  border-radius: 4px;
  padding: 10px;
  margin: 10px 0;
}

.error-message p {
  margin: 0;
  font-weight: bold;
}

/* 体験版メッセージのスタイル */
.trial-message {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-size: 12px;
}

.trial-message strong {
  display: inline;
  margin-right: 5px;
}

.trial-message p {
  margin: 2px 0;
  display: inline;
}

/* スマホビュー調整 */
@media screen and (max-width: 500px) {
  .app-container {
    padding: 10px;
    width: 100%;
  }
  
  .footer-link {
    font-size: 12px;
    margin: 0 5px;
  }
}