/*
Theme Name: Twelblue Theme
*/
html {
    scroll-behavior: smooth; /* ページ内リンクをスムーズにスクロールさせる */
}

body { 
	font-family: 'Noto Sans JP', sans-serif; 
	padding-top: 80px; 
}

:root { 
	--main-color: #3A39A1; 
	--accent-color: #D97A9A; 
}
.main-color-text { 
	color: var(--main-color); 
}
.accent-color-bg { 
	background-color: var(--accent-color); 
}
.main-color-border:hover { 
	border-color: var(--main-color);
}
.sub-menu a { 
	display: block; padding: 0.5rem; 
	border-radius: 0.375rem; 
	transition: background-color 0.2s; 
	font-weight: 500; text-align: center; 
}
.sub-menu a:hover { background-color: #f3f4f6; }


.bubble {
    position: relative;
    background-color: #fff;
    border: 2px solid var(--main-color);
    border-radius: 1.5rem;
    padding: 1rem;
}
.checklist-item {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A39A1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='20 6 9 17 4 12'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1.5em;
    padding-left: 2.2em;
}
.main-color-text { color: var(--main-color); }
.main-color-bg { background-color: var(--main-color); }
.accent-color-bg { background-color: var(--accent-color); }
.main-color-border:hover { border-color: var(--main-color); }

@media (max-width: 767px) {
    body { 
		padding-bottom: 80px; 
	}
}

/* --- PC/SP 表示切替クラス --- */

/* spクラス: スマホでのみ表示 (PCでは非表示) */
@media screen and (min-width: 768px) {
    .sp {
        display: none;
    }
}

/* pcクラス: PCでのみ表示 (スマホでは非表示) */
.pc {
    display: none;
}
@media screen and (min-width: 768px) {
    .pc {
        display: block; /* または inline, inline-block など要素に合わせて調整 */
    }
}

/* ===== TOPに戻るボタンのCSS ===== */
#back-to-top {
    transition: opacity 0.3s, visibility 0.3s;
}

@media screen and (max-width: 767px) {
    #back-to-top {
        bottom: 90px; /* 追従CTA(高さ約80px)の上に表示されるように調整 */
    }
}

/* ===== 記事用スワイプ===== */

.swiper {
  padding-bottom: 40px !important; /* インジケーターのスペースを確保 */
}
.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color) !important;
    top: 45% !important;
}
.swiper-pagination-bullet {
    background-color: var(--accent-color) !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}

* --- 矢印ボタンの新しいデザイン --- */
.swiper-button-next,
.swiper-button-prev {
    color: var(--main-color) !important;
    background-color: rgba(255, 255, 255, 0.8); /* 半透明の白背景 */
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%; /* 円形にする */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 影をつける */
    top: 45% !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important; /* 矢印のアイコンサイズを調整 */
    font-weight: bold;
}

/* --- インジケーターのデザイン --- */
.swiper-pagination-bullet {
    background-color: var(--accent-color) !important;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    opacity: 1;
}


/* ===== Topスライド===== */
.img-rep {
    width: 100%;
    height: 320px;
    background-image: url(https://twelblue.com/wp-content/uploads/2025/07/slide.png);
    background-repeat: repeat-x;
    background-size: 1920px 240px;
    animation-name: warning;
	animation-duration: 50s; 
    animation-timing-function: linear;
    animation-iteration-count: infinite;
        animation-direction: reverse;
}

@keyframes warning {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position:1920px 0;
  }
}

@media only screen and (max-width: 500px) {
.img-rep {
    height: 225px;

}
}	

/* ===== 代表挨拶 ===== */

#plofile-box{
	position: relative;
    padding: 1.5em;
    border-top: solid 2px #f5f5f5;
    border-bottom: solid 2px #c2c2c2;
}

.profile-block .wp-image-72 {
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}
@media (min-width: 768px) {
  .max-w-4xl.mx-auto.bg-slate-50.p-8.rounded-lg.md\:flex.items-center.gap-8 {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: center;
  }

  .max-w-4xl.mx-auto.bg-slate-50.p-8.rounded-lg.md\:flex.items-center.gap-8 > div:first-child {
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
    flex-shrink: 0;
  }

  .max-w-4xl.mx-auto.bg-slate-50.p-8.rounded-lg.md\:flex.items-center.gap-8 > div:first-child > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .max-w-4xl.mx-auto.bg-slate-50.p-8.rounded-lg.md\:flex.items-center.gap-8 h3,
  .max-w-4xl.mx-auto.bg-slate-50.p-8.rounded-lg.md\:flex.items-center.gap-8 p.text-sm {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .text-center.md\:text-left.flex-shrink-0 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .wp-image-72 {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .text-center.md\:text-left.flex-shrink-0 h3,
  .text-center.md\:text-left.flex-shrink-0 p.text-sm {
    text-align: center;
  }
}

/* --- サイト全体の横幅を調整 --- */
.container {
    max-width: 1152px; /* max-w-6xl と同じ幅 */
}


/* --- 投稿・固定ページの本文エリア全体 --- */
.prose {
    font-size: 16px;
    line-height: 1.8;
}

.wp-block-button__link{
	    color: #fff;
    background-color: #D97A9A;
    border-radius: 9999px;
    box-shadow: none;
    text-decoration: none;
    padding: calc(.667em + 2px) calc(1.333em + 2px);
    font-size: 1.125em;
}

/* --- 大見出し (H2) のデザイン --- */
.prose h2,
.prose .wp-block-heading:is(h2) {
    font-size: 1.5rem; /* 24px */
    font-weight: bold;
    padding: 0.5rem 1rem;
    background-color: #f1f5f9; /* bg-slate-100 */
    border-left: 5px solid var(--main-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- 中見出し (H3) のデザイン --- */
.prose h3,
.prose .wp-block-heading:is(h3) {
    font-size: 1.25rem; /* 20px */
    font-weight: bold;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* --- 小見出し (H4) のデザイン --- */
.prose h4,
.prose .wp-block-heading:is(h4)  {
    font-size: 1.125rem; /* 18px */
    font-weight: bold;
    color: var(--main-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}


/* --- 箇条書きリストのデザイン --- */
.prose ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.5rem;
}
.prose ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.5rem;
}
.prose li {
    margin-bottom: 0.5rem;
}

/* --- 引用部分のデザイン --- */
.prose blockquote {
    border-left: 4px solid #e2e8f0; /* border-slate-200 */
    padding-left: 1rem;
    color: #64748b; /* text-slate-500 */
    font-style: italic;
}

/* --- フォーム全体の基本設定 --- */
.wpcf7-form {
    font-weight: 500;
}
.wpcf7-form p {
    margin-bottom: 0.75rem; /* 各項目の下の余白をさらに詰める */
}
.wpcf7-form label,
.wpcf7-form legend {
    font-weight: 600; /* semibold */
    display: block;
    margin-bottom: 0.25rem; /* 4px ラベルと入力欄の間の余白を詰める */
}
.cf7-required {
    color: #ef4444; /* red-500 */
    font-size: 0.875rem; /* 14px */
    margin-left: 0.25rem;
}

/* --- セクション(fieldset)のデザイン --- */
.cf7-fieldset {
    border: 1px solid #e2e8f0; /* slate-200 */
    padding: 1.5rem; /* 24px */
    border-radius: 0.75rem; /* 12px */
    margin-bottom: 1.5rem; /* セクション間の余白を詰める */
}
.cf7-legend {
    font-size: 1.125rem; /* 18px */
    font-weight: 700; /* bold */
    padding: 0 0.5rem;
    color: var(--main-color);
}

/* --- 各入力欄のグループ --- */
.cf7-field-group {
    margin-bottom: 0.75rem; /* 各グループ下の余白をさらに詰める */
}

/* --- 希望日の横並びレイアウト (PCのみ) --- */
@media screen and (min-width: 768px) {
    .cf7-date-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* --- 日付と時間の横並びグループ (PCのみ) --- */
@media screen and (min-width: 768px) {
    .cf7-date-time-group {
        display: grid;
        grid-template-columns: 2fr 1fr; /* 日付を広く、時間を狭く */
        gap: 0.5rem; /* 8px */
        align-items: end;
    }
}


/* --- 入力欄の基本デザイン --- */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="date"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #f8fafc; /* slate-50 */
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(58, 57, 161, 0.2);
}

/* --- ラジオボタンとチェックボックスの共通スタイル --- */
.wpcf7-form .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.25rem; /* 項目下の余白を詰める */
}
.wpcf7-form .wpcf7-list-item-label {
    margin-left: 0.5rem;
}
.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: 1.25em;
    height: 1.25em;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7-form input[type="radio"] {
    border-radius: 50%;
}
.wpcf7-form input[type="checkbox"] {
    border-radius: 0.25rem;
}
.wpcf7-form input[type="checkbox"]:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
.wpcf7-form input[type="radio"]:checked {
    background-color: var(--main-color);
    border-color: var(--main-color);
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

/* --- プルダウンメニューのデザイン --- */
.wpcf7-form select {
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%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;
}

/* --- 送信ボタンのデザイン --- */
.wpcf7-form .wpcf7-submit {
    display: block;
    width: 100%;
    background-color: var(--accent-color);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.wpcf7-form .wpcf7-submit:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* --- お問い合わせフォームの余白を調整 --- */
.wpcf7-form > div,
.wpcf7-form > fieldset {
    margin-bottom: 1.25rem; /* 各項目（名前、フリガナなど）の間の余白 */
}

.wpcf7-form label {
    margin-bottom: -0.85rem; /* ラベルと入力欄の間の余白 */
}

/* --- スマホ版追従バナーを非表示 --- */
.page-id-57 #mobile-cta {
    display: none;
}



/* --- プランページ --- */
.speech-bubble-container {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}
.speech-bubble {
    background-color: var(--accent-color);
    color: white;
    padding: 4px 16px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: bold;
    position: relative;
    white-space: nowrap;
}
.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
}