/*
Theme Name: UPsell Theme
Theme URI: https://example.com/upsell
Author: 合同会社アップセル
Author URI: https://example.com/upsell
Description: UPsell - 中小企業向けWebマーケティング支援 カスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upsell-theme
*/

/* =========================
   Base
   ========================= */
body {
    color: #373737;
    font-family: 'Noto Sans JP', sans-serif;
}

.font-en {
    font-family: 'Montserrat', sans-serif;
}

.font-serif-title {
    font-family: 'Noto Serif JP', serif;
}

/* =========================
   Gradient definitions
   ========================= */
.text-gradient {
    background-image: linear-gradient(to right, #00b5dc, #01adf5, #0777ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.bg-gradient-custom {
    background-image: linear-gradient(to right, #00b5dc, #01adf5, #0777ee);
}

/* =========================
   Font sizes / line-heights
   ========================= */
.text-h2-en {
    font-size: 32px;
    line-height: 1.2;
}
@media (min-width: 768px) {
    .text-h2-en {
        font-size: 70px;
    }
}

.text-h3 {
    font-size: 26px;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .text-h3 {
        font-size: 32px;
    }
}

.text-h4 {
    font-size: 18px;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .text-h4 {
        font-size: 20px;
    }
}

.text-p {
    font-size: 16px;
    line-height: 1.8;
}
@media (min-width: 768px) {
    .text-p {
        font-size: 17px;
    }
}

/* Custom keyframes (decorative) */
@keyframes custom-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================
   Contact page: FLOW step dotted line
   ========================= */
.step-item {
    position: relative;
    padding-bottom: 3rem;
}
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.5rem; /* Below the icon */
    bottom: 0.5rem; /* Small gap before next icon */
    left: 1.25rem; /* Center of w-10 (40px) icon */
    border-left: 1px dashed #9ca3af; /* Tailwind gray-400 */
}

/* =========================
   Contact Form 7 styles (UPsell light blue theme)
   ========================= */
.wpcf7 {
    max-width: 720px;
    margin: 0 auto;
}

.wpcf7 p {
    margin-bottom: 1.5rem;
}

.wpcf7 label {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #373737;
    margin-bottom: 0.75rem;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    color: #373737;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: #01adf5;
    box-shadow: 0 0 0 3px rgba(1, 173, 245, 0.15);
}

.wpcf7 select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 160px;
}

/* CF7 radio / checkbox rendered markup */
.wpcf7-radio,
.wpcf7-checkbox {
    display: block;
}

.wpcf7-radio .wpcf7-list-item,
.wpcf7-checkbox .wpcf7-list-item {
    display: inline-block;
    margin: 0 12px 10px 0;
}

.wpcf7-radio .wpcf7-list-item input[type="radio"],
.wpcf7-checkbox .wpcf7-list-item input[type="checkbox"] {
    margin-right: 6px;
}

.wpcf7 input[type="submit"] {
    background: linear-gradient(to right, #00b5dc, #01adf5, #0777ee);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    width: auto;
    min-width: 240px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: opacity 0.2s, transform 0.2s;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    margin: 0 auto;
}

.wpcf7 input[type="submit"]:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* Validation error */
.wpcf7-not-valid {
    border-color: #01adf5 !important;
}

.wpcf7-not-valid-tip {
    color: #0090d8;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* Response output */
.wpcf7-response-output {
    margin-top: 1.5rem !important;
    padding: 16px !important;
    border-radius: 4px;
    font-size: 14px;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #01adf5 !important;
    background-color: #eff5f8;
    color: #0777ee;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
    border-color: #f97316 !important;
    background-color: #fff7ed;
    color: #c2410c;
}

.wpcf7-spinner {
    margin: 1rem auto 0;
    display: block;
}

.wpcf7 .required-mark {
    color: #01adf5;
    margin-left: 4px;
}

/* Mobile form adjustments */
@media (max-width: 480px) {
    .wpcf7 input[type="text"],
    .wpcf7 input[type="email"],
    .wpcf7 input[type="tel"],
    .wpcf7 select,
    .wpcf7 textarea {
        padding: 12px 14px;
        font-size: 16px; /* iOS zoom prevention */
    }
    .wpcf7 input[type="submit"] {
        padding: 14px 20px;
        min-width: 100%;
    }
}

/* =========================
   WordPress post content (single/page)
   ========================= */
.upsell-entry h1,
.upsell-entry h2,
.upsell-entry h3,
.upsell-entry h4 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.upsell-entry h2 {
    font-size: clamp(22px, 4vw, 30px);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #01adf5;
}
.upsell-entry h3 {
    font-size: clamp(18px, 3vw, 22px);
    border-left: 4px solid #01adf5;
    padding-left: 0.75rem;
}
.upsell-entry p {
    margin-bottom: 1.25rem;
    line-height: 1.9;
}
.upsell-entry a {
    color: #01adf5;
    text-decoration: underline;
}
.upsell-entry a:hover {
    color: #0090d8;
}
.upsell-entry img {
    max-width: 100%;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}
.upsell-entry ul,
.upsell-entry ol {
    margin: 1rem 0 1.25rem 1.5rem;
}
.upsell-entry li {
    margin-bottom: 0.5rem;
}
.upsell-entry blockquote {
    border-left: 4px solid #01adf5;
    padding: 0.5rem 1rem;
    margin: 1.25rem 0;
    background-color: #eff5f8;
    color: #555;
}

/* Pagination (WordPress core classes) */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.pagination .page-numbers,
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    color: #373737;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 700;
}
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover {
    background-color: #01adf5;
    color: #ffffff;
    border-color: #01adf5;
}
.pagination .page-numbers.current,
.nav-links .page-numbers.current {
    background-color: #01adf5;
    color: #ffffff;
    border-color: #01adf5;
}
