/* =========================================
   J-tips Corporate Site CSS
   ========================================= */

/* 1. CSS Reset */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }
body { margin: 0; line-height: inherit; }
a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
video { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }

/* 2. Custom Properties & Base Styles */
:root {
    --j-red: #ca1525;
    --j-red-dark: #a8121f;
    --j-red-light: #f9e8e9;
    --j-black: #000000;
    --j-gray: #333333;
    --j-gray-light: #f3f4f6;
    --j-border-gray: #d1d5db;
    --activator-blue: #1D3597;
    --activator-blue-dark: #0c2486;
    --activator-red: #DF2222;
    --chatbot-green: #03ab62;
    --chatbot-green-dark: #098d57;
}
body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--j-gray);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.font-headline {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    font-weight: 900;
}
.font-nav {
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
}
.gradient-text {
    background: linear-gradient(to right, #ff0099, #ca1525);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-bg { background-color: var(--j-gray-light); }
.card-hover { transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; }
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.media-link { transition: background-color 0.3s, color 0.3s; }
.media-link:hover { background-color: var(--j-gray-light); }
.bg-j-red { background-color: var(--j-red); }
.bg-j-red-dark { background-color: var(--j-red-dark); }
.hover\:bg-j-red-dark:hover { background-color: var(--j-red-dark); }
.text-j-red { color: var(--j-red); }
.hover\:text-j-red:hover { color: var(--j-red); }
.bg-j-red-light { background-color: var(--j-red-light); }
.bg-j-black { background-color: var(--j-black); }
.hover\:bg-j-gray-dark:hover { background-color: #1f2937; }
.text-j-gray { color: var(--j-gray); }
.bg-j-gray-light { background-color: var(--j-gray-light); }
.border-j-border-gray { border-color: var(--j-border-gray); }
.text-j-blue { color: var(--activator-blue); }

/* 言語切替ボタン */
.lang-switcher {
    font-size: 0.875rem;
}
@media (min-width: 1024px) {
    .lang-switcher {
        font-size: 0.8125rem;
    }
}

/* ぶら下げインデント（①②など番号付きリスト） */
.list-hanging li {
    padding-left: 1em;
    text-indent: -1em;
}

/* 箇条書きなし・ぶら下げインデント（固定ページのulに直接付与） */
.post-content ul.list-indent {
    list-style: none;
    padding-left: 0;
}
.post-content ul.list-indent li {
    padding-left: 1.5em;
    text-indent: -1.5em;
    margin-bottom: 0.25rem;
}

/* Company Info Section */
.company-info-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--j-border-gray);
}
.company-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.company-info-item .label {
    font-weight: 700;
    color: var(--j-black);
    margin: 0;
    margin-bottom: 0.25rem;
}
.company-info-item .value { color: var(--j-gray); }
@media (min-width: 768px) {
    .company-info-item {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
    }
    .company-info-item .label {
        width: 25%;
        flex-shrink: 0;
        margin-bottom: 0;
        padding-right: 1rem;
    }
    .company-info-item .value { width: 75%; }
}

/* 3. Layout Utilities */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.absolute { position: absolute; }
.relative { position: relative; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.top-full { top: 100%; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-24 { margin-bottom: 6rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-6 { margin-left: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-full { height: 100%; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-1\/3 { width: 33.333333%; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.flex-grow { flex-grow: 1; }
.shrink-0 { flex-shrink: 0; }
.transform { transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.hover\:scale-105:hover { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: translate(var(--tw-translate-x, 0), var(--tw-translate-y, 0)) rotate(var(--tw-rotate, 0)) skewX(var(--tw-skew-x, 0)) skewY(var(--tw-skew-y, 0)) scaleX(var(--tw-scale-x, 1)) scaleY(var(--tw-scale-y, 1)); }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.bg-white { background-color: #fff; }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.bg-black\/60 { background-color: rgba(0, 0, 0, 0.6); }
.bg-gray-50 { background-color: #f9fafb; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-16 { padding-left: 4rem; padding-right: 4rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.pb-20 { padding-bottom: 5rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.uppercase { text-transform: uppercase; }
.leading-tight { line-height: 1.25; }
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-green-500 { color: #22c55e; }
.hover\:underline:hover { text-decoration-line: underline; }
.shadow-md { box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.object-cover { object-fit: cover; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; }
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }
.aspect-w-16 { --tw-aspect-w: 16; }
.aspect-h-9 { --tw-aspect-h: 9; }
.aspect-w-16.aspect-h-9 { position: relative; padding-bottom: calc(var(--tw-aspect-h) / var(--tw-aspect-w) * 100%); }
.aspect-w-16.aspect-h-9 > * { position: absolute; height: 100%; width: 100%; top: 0; right: 0; bottom: 0; left: 0; }

/* 4. Form Styles */
.form-input, .form-textarea {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background-color: #f9fafb;
    border-width: 2px;
    border-color: #e5e7eb;
    border-radius: 0.5rem;
    transition: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.form-input:focus, .form-textarea:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    background-color: #fff;
    border-color: transparent;
    --tw-ring-color: var(--j-red);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width, 0px) var(--tw-ring-offset-color, #fff);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width, 0px)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.form-checkbox {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 0.25rem;
    border-color: var(--j-border-gray);
    color: var(--j-red);
    accent-color: var(--j-red);
}
.form-checkbox:focus {
    --tw-ring-color: var(--j-red);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width, 2px) var(--tw-ring-offset-color, #fff);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width, 2px)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

/* 5. Responsive Utilities */
@media (min-width: 640px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:h-10 { height: 2.5rem; }
    .sm\:w-auto { width: auto; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:p-8 { padding: 2rem; }
    .sm\:p-10 { padding: 2.5rem; }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
    .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
    .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .md\:text-center { text-align: center; }
    .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:p-12 { padding: 3rem; }
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:items-start { align-items: flex-start; }
    .md\:space-y-0 > :not([hidden]) ~ :not([hidden]) { margin-top: 0px; }
    .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
    .md\:w-1\/2 { width: 50%; }
    .md\:w-1\/3 { width: 33.333333%; }
    .md\:w-1\/4 { width: 25%; }
    .md\:w-2\/3 { width: 66.666667%; }
    .md\:w-3\/4 { width: 75%; }
    .md\:mb-0 { margin-bottom: 0px; }
    .md\:pr-4 { padding-right: 1rem; }
    .md\:w-auto { width: auto; }
}
@media (min-width: 1024px) {
    .lg\:flex { display: flex; }
    .lg\:hidden { display: none; }
    .lg\:inline-block { display: inline-block; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* 6. Post Content Typography */
.post-content { line-height: 1.8; color: var(--j-gray); }
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--j-red); }
.post-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content h4 { font-size: 1.125rem; font-weight: 700; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { 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.25rem; }
.post-content a { color: var(--activator-blue); text-decoration: underline; }
.post-content a:hover { color: var(--j-red); }
.post-content img { max-width: 100%; height: auto; margin-top: 1rem; margin-bottom: 1rem; }
.post-content blockquote { border-left: 4px solid var(--j-border-gray); padding-left: 1rem; margin-left: 0; color: #6b7280; font-style: italic; margin-bottom: 1.25rem; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.post-content th, .post-content td { padding: 0.75rem 1rem; border: 1px solid var(--j-border-gray); text-align: left; }
.post-content th { background-color: var(--j-gray-light); font-weight: 700; }

/* 7. Pagination */
.pagination-item a,
.pagination-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--j-border-gray);
    font-size: 0.875rem;
    color: var(--j-gray);
    transition: all 0.2s;
}
.pagination-item a:hover { background-color: var(--j-gray-light); color: var(--j-red); border-color: var(--j-red); }
.pagination-item .current { background-color: var(--j-red); color: #fff; border-color: var(--j-red); }

/* 8. WordPress Pagination — the_posts_pagination() */
.navigation.pagination {
    margin-top: 3rem;
    text-align: center;
}
.navigation.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid var(--j-border-gray);
    font-size: 0.875rem;
    color: var(--j-gray);
    transition: all 0.2s;
    text-decoration: none;
}
.navigation.pagination a.page-numbers:hover {
    background-color: var(--j-gray-light);
    color: var(--j-red);
    border-color: var(--j-red);
}
.navigation.pagination .page-numbers.current {
    background-color: var(--j-red);
    color: #fff;
    border-color: var(--j-red);
}
.navigation.pagination .page-numbers.dots {
    border-color: transparent;
    background: none;
}

/* 9. WordPress Post Navigation — the_post_navigation() */
.navigation.post-navigation {
    max-width: 48rem;
    margin: 3rem auto 0;
    padding: 2rem 1.5rem 0;
    border-top: 1px solid var(--j-border-gray);
}
.navigation.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next {
    max-width: 48%;
}
.navigation.post-navigation .nav-next {
    text-align: right;
    margin-left: auto;
}
.navigation.post-navigation a {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--j-gray);
    text-decoration: none;
    transition: color 0.2s;
}
.navigation.post-navigation a:hover {
    color: var(--j-red);
}
.navigation.post-navigation .nav-subtitle {
    flex-shrink: 0;
    color: #6b7280;
    font-size: 0.75rem;
    margin-top: 0.2em;
}
.navigation.post-navigation .nav-title {
    font-weight: 700;
}

/* 10. Entry title reset (archive list) */
.entry-title {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}
.entry-title a {
    text-decoration: none;
}

/* 11. Page / Single post title */
.single .entry-title,
.page .entry-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.5;
}
@media (min-width: 768px) {
    .single .entry-title,
    .page .entry-title {
        font-size: 1.75rem;
        line-height: 1.4;
    }
}

/* ============================================
   12. Contact Form 7
   ============================================ */

/* CF7 が自動挿入する <p> タグの影響を除去 */
.wpcf7-form p {
    margin: 0;
    padding: 0;
}
/* flex の直接子 <p> を透過させ、内部の label/span をそのまま flex item として機能させる */
.wpcf7-form .flex > p,
.wpcf7-form .inline-flex > p {
    display: contents;
}
/* wpcf7-form-control-wrap をブロック要素にして入力欄が幅いっぱいになるようにする */
.wpcf7-form-control-wrap {
    display: block;
}

/* テキスト・メール・電話入力 */
.form-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: #fff;
    border: 1px solid var(--j-border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--j-gray);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--j-red);
    box-shadow: 0 0 0 3px rgba(202, 21, 37, 0.15);
}
.form-input::placeholder { color: #9ca3af; }

/* テキストエリア */
.form-textarea {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    background-color: #fff;
    border: 1px solid var(--j-border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    color: var(--j-gray);
    font-family: inherit;
    min-height: 160px;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-textarea:focus {
    outline: none;
    border-color: var(--j-red);
    box-shadow: 0 0 0 3px rgba(202, 21, 37, 0.15);
}
.form-textarea::placeholder { color: #9ca3af; }

/* fieldset リセット（CF7 + ブラウザデフォルト上書き） */
.wpcf7 fieldset {
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
    height: auto;
    overflow: visible;
    display: block;
}

/* チェックボックス（CF7 は .form-checkbox span の中に .wpcf7-list-item を並べる） */
.form-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    width: 100%;
    height: auto;
    overflow: visible;
}
.form-checkbox .wpcf7-list-item {
    display: block;
    margin: 0;
    width: 100%;
}
@media (min-width: 640px) {
    .form-checkbox .wpcf7-list-item {
        width: calc(50% - 0.3125rem);
    }
}
.form-checkbox .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--j-gray);
}
.form-checkbox input[type="checkbox"],
.wpcf7-acceptance input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    accent-color: var(--j-red);
    cursor: pointer;
}

/* 送信ボタン（CF7 は input[type="submit"].wpcf7-submit を生成） */
input.wpcf7-submit {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    display: block;
    width: 100%;
    background-color: var(--j-red);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    font-family: inherit;
    line-height: 1.5;
    padding: 0.75rem 4rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}
input.wpcf7-submit:not(:disabled):hover {
    background-color: var(--j-red-dark);
    transform: scale(1.05);
}
input.wpcf7-submit:disabled {
    background-color: #666666;
    cursor: not-allowed;
    transform: none;
}

/* CF7 スピナー */
.wpcf7-spinner {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--j-red);
}
.wpcf7-form-control.wpcf7-not-valid .form-input,
.wpcf7-form-control.wpcf7-not-valid .form-textarea,
.form-input.wpcf7-not-valid,
.form-textarea.wpcf7-not-valid {
    border-color: var(--j-red);
}

/* 送信結果メッセージ */
.wpcf7-response-output {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
    border: 1px solid var(--j-border-gray);
    color: var(--j-gray);
}
.wpcf7.sent .wpcf7-response-output {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.wpcf7.failed .wpcf7-response-output,
.wpcf7.invalid .wpcf7-response-output,
.wpcf7.spam .wpcf7-response-output {
    background-color: #fef2f2;
    border-color: #fca5a5;
    color: var(--j-red);
}
