/* メインスタイルシート */

/* ページネーションスタイル */
.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.pagination li {
    margin: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    transition: all 0.2s;
}

.pagination a:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
}

.pagination .current {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
}

.pagination .current:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* テキストの行数制限 */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* フッター用のレイアウト調整 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* フッターのスタイル調整 */
footer {
    margin-top: auto;
}

/* ソーシャルアイコンのホバーエフェクト */
footer a[aria-label]:hover svg {
    transform: translateY(-1px);
    transition: transform 0.2s ease;
}

/* モバイル用フッターナビゲーションの調整 */
@media (max-width: 768px) {
    footer .border-t {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* 1:1アスペクト比のスタイル */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* aspect-ratioがサポートされていない場合のフォールバック */
@supports not (aspect-ratio: 1 / 1) {
    .aspect-square {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 100%;
    }
    
    .aspect-square > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Cookieバナーのスタイル */
#cookie-banner {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

#cookie-banner.show {
    transform: translateY(0);
}

/* プロースタイル（固定ページ用） */
.prose {
    color: #374151;
    line-height: 1.75;
}

.prose h1 {
    color: #111827;
    font-weight: 800;
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
}

.prose h2 {
    color: #111827;
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.prose h4 {
    color: #111827;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.prose h5 {
    color: #111827;
    font-weight: 600;
    font-size: 0.875em;
    margin-top: 1.5714286em;
    margin-bottom: 0.5714286em;
    line-height: 1.5714286;
}

.prose h6 {
    color: #111827;
    font-weight: 600;
    font-size: 0.875em;
    margin-top: 1.5714286em;
    margin-bottom: 0.5714286em;
    line-height: 1.5714286;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul li {
    list-style-type: disc;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
    list-style-type: decimal;
}

.prose ol li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose hr {
    border-color: #e5e7eb;
    border-top-width: 1px;
    margin-top: 3em;
    margin-bottom: 3em;
}

.prose a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #1d4ed8;
}

.prose strong {
    color: #111827;
    font-weight: 600;
}

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #e5e7eb;
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    height: auto;
}

.prose video {
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 100%;
    height: auto;
}

.prose figure {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose figure > * {
    margin-top: 0;
    margin-bottom: 0;
}

.prose figcaption {
    color: #6b7280;
    font-size: 0.875em;
    line-height: 1.4285714;
    margin-top: 0.8571429em;
}

.prose code {
    color: #111827;
    font-weight: 600;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

.prose pre {
    color: #e5e7eb;
    background-color: #374151;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding: 0.8571429em 1.1428571em;
}

.prose pre code {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: 400;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.prose table {
    width: 100%;
    table-layout: auto;
    text-align: left;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
}

.prose thead {
    color: #111827;
    font-weight: 600;
    border-bottom-width: 1px;
    border-bottom-color: #d1d5db;
}

.prose thead th {
    vertical-align: bottom;
    padding-right: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-left: 0.5714286em;
}

.prose tbody tr {
    border-bottom-width: 1px;
    border-bottom-color: #e5e7eb;
}

.prose tbody tr:last-child {
    border-bottom-width: 0;
}

.prose tbody td {
    vertical-align: top;
    padding-top: 0.5714286em;
    padding-right: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-left: 0.5714286em;
}

/* WordPressの自動生成クラス対応 */
.prose .wp-block-image {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose .wp-block-quote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #e5e7eb;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose .wp-block-code {
    color: #111827;
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.375rem;
    font-size: 0.875em;
    overflow-x: auto;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .prose {
        font-size: 0.875rem;
        line-height: 1.625;
    }
    
    .prose h1 {
        font-size: 1.875rem;
        line-height: 1.2;
    }
    
    .prose h2 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    .prose h3 {
        font-size: 1.125rem;
        line-height: 1.4;
    }
}
/* Contact Form 7のスタイル */
.contact-form .wpcf7 {
    margin: 0;
}

.contact-form .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form .wpcf7-form-control-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="url"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="url"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.contact-form .wpcf7-submit {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    align-self: flex-start;
}

.contact-form .wpcf7-submit:hover {
    background-color: #2563eb;
}

.contact-form .wpcf7-submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.contact-form .wpcf7-submit:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

/* バリデーションエラーのスタイル */
.contact-form .wpcf7-not-valid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.contact-form .wpcf7-validation-errors {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    color: #dc2626;
    font-size: 0.875rem;
}

.contact-form .wpcf7-mail-sent-ok {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    color: #166534;
    font-size: 0.875rem;
}

.contact-form .wpcf7-mail-sent-ng {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    color: #dc2626;
    font-size: 0.875rem;
}

.contact-form .wpcf7-spam-blocked {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 1rem 0;
    color: #d97706;
    font-size: 0.875rem;
}

/* 必須項目のマーク */
.contact-form .wpcf7-form .required::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

/* チェックボックスとラジオボタンのスタイル */
.contact-form .wpcf7-checkbox,
.contact-form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.contact-form .wpcf7-list-item input[type="checkbox"],
.contact-form .wpcf7-list-item input[type="radio"] {
    width: auto;
    margin: 0;
}

.contact-form .wpcf7-list-item-label {
    margin: 0;
    font-weight: normal;
}

/* ファイルアップロードのスタイル */
.contact-form input[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #d1d5db;
    border-radius: 0.375rem;
    background-color: #f9fafb;
}

.contact-form input[type="file"]:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .contact-form .wpcf7-submit {
        width: 100%;
        text-align: center;
    }
}
/* reCAPTCHA注意書きのスタイル */
.recaptcha-notice {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1.5rem;
}

.recaptcha-notice p {
    margin: 0;
    line-height: 1.5;
}

.recaptcha-notice a {
    transition: color 0.2s ease;
}

.recaptcha-notice a:hover {
    text-decoration: underline;
}

/* レスポンシブ対応 */
@media (max-width: 640px) {
    .recaptcha-notice {
        margin-top: 1rem;
        padding-top: 0.75rem;
    }
    
    .recaptcha-notice p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}
/* reCAPTCHA v3バッジ（ロゴ）を非表示 */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* reCAPTCHA v2の場合のスタイル調整 */
.g-recaptcha {
    margin: 1rem 0;
}

/* reCAPTCHAのiframeを非表示にする場合の追加スタイル */
iframe[src*="recaptcha"] {
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* reCAPTCHAのスクリプトによって追加される要素を非表示 */
div[style*="width: 256px; height: 60px;"] {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* reCAPTCHAバッジの代替として、より目立つ注意書きスタイル */
.recaptcha-notice {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    margin-top: 1.5rem;
}

.recaptcha-notice p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.875rem;
    color: #64748b;
}

.recaptcha-notice a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.recaptcha-notice a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}