/* ===== AIのお手伝い 専用ページ（営業資料と同じ色） ===== */
.ai-page { background: #FBF6EE; color: #1F3A4D; }
.ai-page .site-header { background: rgba(255,255,255,.95); }
.ai-page .card { border-color: #EEE7DC; box-shadow: 0 8px 22px rgba(31,58,77,.07); }

.ai-label { display: inline-flex; align-self: flex-start; padding: 5px 18px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; }
.ai-sec { padding: 72px 0; }
.ai-sec.white { background: #fff; }
.ai-sec.mint { background: #E6F0EE; }
.ai-sec.mint2 { background: #EEF4F1; }
.ai-sec h2 { margin-top: 16px; font-family: var(--font-round); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.45; }
.ai-sec .lead { margin-top: 14px; font-size: 17px; color: #3A4A55; }
.ai-body { margin-top: 32px; }
.ai-text { color: #4A5A66; font-size: 15px; }

/* first view */
.ai-hero { position: relative; overflow: hidden; }
.ai-hero::before { content: ""; position: absolute; top: -140px; right: -180px; width: 680px; height: 600px; border-radius: 50%; background: #DDEBE9; opacity: .8; }
.ai-hero .container { position: relative; padding-top: 56px; padding-bottom: 72px; }
.ai-target { display: flex; align-items: center; gap: 12px; font-family: var(--font-round); font-weight: 700; font-size: 19px; line-height: 1.5; }
.ai-target .icon { width: 36px; height: 36px; color: var(--teal); }
.ai-hero h1 { margin-top: 22px; font-family: var(--font-round); font-size: clamp(32px, 5vw, 56px); line-height: 1.32; }
.ai-hero h1 em { font-style: normal; color: var(--teal); }
.ai-deco { margin-top: 22px; width: 120px; height: 14px; border-radius: 999px; background: var(--yellow); }
.ai-hero .lead { margin-top: 22px; font-size: 18px; color: #3A4A55; }
.ai-hero-grid { margin-top: 36px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: end; }
.ai-photo { position: relative; }
.ai-photo img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 18%; border-radius: 28px 28px 0 0; }
.ai-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 8px 12px; background: rgba(255,255,255,.94); border-radius: 14px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.45; }
.ai-can { position: relative; background: #fff; border-radius: 24px; padding: 40px 16px 24px; box-shadow: 0 10px 28px rgba(31,58,77,.10); }
.ai-can > .ai-label { position: absolute; top: -16px; left: 24px; }
.ai-can ul { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-can li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 10px; text-align: center; }
.ai-can li + li { border-left: 2px solid #EEE7DC; }
.ai-can .icon { width: 40px; height: 40px; color: var(--teal); }
.ai-can strong { font-family: var(--font-round); font-size: 18px; }
.tag-yellow { padding: 2px 12px; background: var(--yellow); border-radius: 8px; font-size: 14px; font-weight: 700; color: #1F3A4D; }
.ai-cta { margin-top: 20px; display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 0 28px 0 14px; background: var(--teal); color: #fff; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 28px rgba(31,58,77,.18); transition: background .15s, transform .15s; }
.ai-cta:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }
.ai-cta .free { padding: 4px 20px; background: var(--yellow); color: #1F3A4D; border-radius: 999px; font-family: var(--font-round); font-size: 22px; font-weight: 700; }
.ai-cta .txt { flex: 1; font-family: var(--font-round); font-size: 22px; font-weight: 700; }
.ai-cta .icon { width: 28px; height: 28px; stroke-width: 2.4; }

/* about */
.ai-about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.ai-about img { width: 100%; height: 360px; object-fit: cover; object-position: 50% 18%; border-radius: 20px; }
.ai-points { display: grid; gap: 14px; }
.ai-point { display: flex; gap: 18px; align-items: center; background: #FBF6EE; border-radius: 16px; padding: 20px 24px; }
.ai-point .icon { width: 36px; height: 36px; color: var(--teal); }
.ai-point h3 { font-size: 18px; }
.ai-point p { font-size: 15px; color: #4A5A66; }

/* why */
.ai-why h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.7; }

/* cards */
.trouble-card { padding: 24px; border-top: 6px solid #F2C94C; border-radius: 14px; }
.trouble-card h3 { font-size: 20px; }
.trouble-card p { margin-top: 8px; font-size: 15px; color: #4A5A66; }
.help-card { padding: 28px; display: flex; flex-direction: column; gap: 10px; background: #FBF6EE; border-radius: 20px; }
.help-card .num { align-self: flex-start; padding: 2px 14px; background: var(--yellow); border-radius: 10px; font-weight: 700; }
.help-card h3 { font-size: 21px; }
.help-card p { font-size: 15px; color: #4A5A66; }
.steps { display: flex; align-items: center; gap: 16px; }
.step { flex: 1; padding: 28px; background: #fff; border-radius: 20px; }
.step .no { font-size: 15px; font-weight: 700; color: #2F7D6B; }
.step h3 { font-size: 21px; }
.step p { margin-top: 8px; font-size: 15px; color: #4A5A66; }
.step-arrow { flex: none; width: 32px; height: 32px; color: #C99A1E; stroke-width: 2.4; }
.cond-card { padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.cond-card .icon { width: 30px; height: 30px; color: var(--teal); }
.cond-card h3 { font-size: 18px; }
.cond-card p { margin-top: 4px; font-size: 15px; color: #4A5A66; }
.faq { display: flex; gap: 14px; padding: 24px; background: #FBF6EE; border-radius: 16px; }
.faq .q { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.faq h3 { font-size: 17px; }
.faq p { margin-top: 6px; font-size: 15px; color: #4A5A66; }

/* contact */
.ai-contact { background: var(--teal); color: #fff; text-align: center; padding: 72px 0; }
.ai-contact .container { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ai-contact .ai-label { align-self: center; background: var(--yellow); color: #1F3A4D; }
.ai-contact h2 { font-family: var(--font-round); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.45; }
.ai-contact .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: #1F3A4D; }
.btn-yellow:hover { background: #F1D26B; border-color: #F1D26B; color: #1F3A4D; }
.btn-white-line { background: transparent; border-color: #fff; color: #fff; }
.btn-white-line:hover { background: rgba(255,255,255,.12); color: #fff; }
.ai-contact a.addr { color: #fff; }

.ai-footer { background: #1F3A4D; color: #fff; padding: 24px 0; font-size: 13px; }
.ai-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.ai-footer a { color: #fff; }

@media (max-width: 900px) {
  .ai-sec { padding: 52px 0; }
  .ai-hero .container { padding-top: 32px; padding-bottom: 48px; }
  .ai-hero::before { width: 360px; height: 320px; right: -160px; top: -80px; }
  .ai-target { font-size: 15px; }
  .ai-target .icon { width: 28px; height: 28px; }
  .ai-hero .lead { font-size: 15px; }
  .ai-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ai-photo img { height: 300px; }
  .ai-can ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ai-can li { flex-direction: row; justify-content: flex-start; text-align: left; flex-wrap: wrap; }
  .ai-can li + li { border-left: 0; border-top: 2px solid #EEE7DC; padding-top: 16px; }
  .ai-can .icon { width: 32px; height: 32px; }
  .ai-cta { min-height: 64px; gap: 10px; padding: 0 18px 0 10px; }
  .ai-cta .free { font-size: 16px; padding: 3px 14px; }
  .ai-cta .txt { font-size: 16px; }
  .ai-about { grid-template-columns: minmax(0, 1fr); }
  .ai-about img { max-width: 320px; height: 320px; }
  .ai-point { padding: 16px 18px; }
  .steps { flex-direction: column; align-items: stretch; }
  .step-arrow { align-self: center; transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .ai-cta .txt { font-size: 14px; }
  .ai-cta .free { font-size: 14px; padding: 3px 12px; }
}

/* スマホ・タブレット：基本はセンター寄せ */
@media (max-width: 900px) {
  .ai-hero .container, .ai-sec .container { text-align: center; }
  .ai-label { align-self: center; }
  .ai-sec .container > .ai-label, .ai-hero .container > .ai-label { display: inline-flex; }
  .ai-target { justify-content: center; flex-direction: column; gap: 6px; }
  .ai-deco { margin-left: auto; margin-right: auto; }
  .ai-can li { justify-content: center; text-align: center; }
  .ai-about { justify-items: center; }
  .ai-point { flex-direction: column; text-align: center; }
  .help-card, .step { align-items: center; text-align: center; }
  .help-card .num { align-self: center; }
  .cond-card { flex-direction: column; align-items: center; text-align: center; }
  .faq { text-align: left; }
}
@media (max-width: 900px) {
  .ai-page main h1, .ai-page main h2, .ai-page main h3, .ai-page main p { word-break: auto-phrase; text-wrap: balance; }
}

/* お困りごと：スマホ・タブレットで4列のまま細長くならないように */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .trouble-card { padding: 18px 20px; }
  .trouble-card h3 { font-size: 18px; }
}
