@charset "utf-8";

/*
Theme Name: MagicDelta.ai Theme
Author: Masato Akiho
Author URI: https://magicdelta.ai
Description: MagicDelta.aiのWPテーマです。
Version: 1.0
*/

@import "tailwindcss";

button{
  cursor: pointer;
}

/* WordPress記事コンテンツのスタイル */
.post-content {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}

.post-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.25;
}

.post-content h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #111827;
  line-height: 1.25;
}

.post-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
  line-height: 1.375;
}

.post-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
  line-height: 1.375;
}

.post-content h5, .post-content h6 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #111827;
  line-height: 1.375;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-content ul {
  list-style-type: disc;
}

.post-content ol {
  list-style-type: decimal;
}

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.625;
}

.post-content li > ul, .post-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.post-content blockquote {
  border-left: 4px solid #e5e7eb;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #6b7280;
}

.post-content code {
  background-color: #f3f4f6;
  color: #dc2626;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.post-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 0.5rem;
}

.post-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.post-content th, .post-content td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.post-content th {
  background-color: #f9fafb;
  font-weight: 600;
}

.post-content a {
  color: #2563eb;
  text-decoration: underline;
}

.post-content a:hover {
  color: #1d4ed8;
}

.post-content strong {
  font-weight: 600;
}

.post-content em {
  font-style: italic;
}


/* Contact Form7用のスタイル */

/* フォーム全体のコンテナ */
.wpcf7-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* 入力フィールド共通スタイル */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: #f9fafb;
    box-sizing: border-box;
}

/* フォーカス時のスタイル */
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* テキストエリア */
.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* ラベル */
.wpcf7-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

/* フォームグループ（各項目の間隔） */
.wpcf7-form p {
    margin-bottom: 1.5rem;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: #2563eb;
}

.wpcf7-form input[type="submit"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* 成功メッセージ */
.wpcf7-mail-sent-ok {
    background-color: #dcfce7;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #bbf7d0;
    margin-bottom: 1rem;
}

/* エラーメッセージ（全体） */
.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    margin-bottom: 1rem;
}

/* バリデーションエラー */
.wpcf7-validation-errors {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #fecaca;
    margin-bottom: 1rem;
}

/* スピナー（送信中） */
.wpcf7-spinner {
    margin-left: 0.5rem;
    display: inline-block;
}

/* チェックボックス・ラジオボタン */
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wpcf7-form .wpcf7-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.wpcf7-form .wpcf7-list-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

/* ファイルアップロード */
.wpcf7-form input[type="file"] {
    background-color: white;
    border: 2px dashed #d1d5db;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
}

.wpcf7-form input[type="file"]:hover {
    border-color: #3b82f6;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .wpcf7-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .wpcf7-form input[type="submit"] {
        width: 100%;
        text-align: center;
    }
}

/* 必須項目のアスタリスク */
.wpcf7-form .required {
    color: #ef4444;
    font-weight: 600;
}

/* プレースホルダー */
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* セレクトボックス */
.wpcf7-form select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* フォームの見出し */
.wpcf7-form h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* フォームの説明文 */
.wpcf7-form .form-description {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}