@charset "UTF-8";
/* 旧 WordPress テーマ（deiji-tant）の style.css をそのまま移したもの。新しく書くものは site.css へ */
/* =========================================
   Variables & Reset (共通)
   ========================================= */
:root {
  --font-main: "Noto Sans JP", sans-serif;
  --font-serif: "Shippori Mincho", serif;
  --color-bg: #f8fafc;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-primary: #1e293b;
  --color-primary-light: #e2e8f0;
  --color-accent: #0f766e;
  --color-accent-pop: #f59e0b; 
  --color-white: #ffffff;
  --color-border: #e2e8f0;
  --easing: cubic-bezier(0.25, 1, 0.5, 1);
}


*,
*::before,
*::after {box-sizing: border-box;margin: 0;padding: 0;}
html {scroll-behavior: smooth;font-size: 16px;}
body {font-family: var(--font-main);color: var(--color-text);background-color: var(--color-bg);line-height: 1.8;letter-spacing: 0.04em;-webkit-font-smoothing: antialiased;}
img {max-width: 100%;height: auto;display: block;}
a {text-decoration: none;color: inherit;transition: all 0.3s;}
ul {list-style: none;}
.material-symbols-outlined {vertical-align: middle;font-size: 1.2em;line-height: 1;}
.pc{display: block;}
.sp{display: none;}

@media screen and (max-width: 768px) {
  .pc{display: none;}
  .sp{display: block;}
}

/* =========================================
   Scroll Fade Up Animation (Fix)
   ========================================= */
  .js-fade-up {opacity: 0;transform: translateY(30px);transition: opacity 0.8s, transform 0.8s;will-change: opacity, transform;}
  .js-fade-up.is-show {opacity: 1 !important;transform: translateY(0) !important;}



/* =========================================
   Header Layout & Navigation
   ========================================= */
.header { position: fixed; top: 0; left: 0; width: 100%; height: 70px; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid rgba(0, 0, 0, 0.05); display: flex; align-items: center; }
.header__inner { width: 92%; max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.header__logo { font-family: var(--font-main); font-size: 1.4rem; font-weight: 700; color: var(--color-primary); letter-spacing: 0.05em; }
.header__nav { display: none; }
.header__list { display: flex; flex-direction: column; gap: 2rem; text-align: center; list-style: none; }
.header__link { font-size: 1rem; font-weight: 500; text-decoration: none; color: var(--color-text); }
.header__button { background-color: var(--color-primary); color: white; padding: 0.8rem 1.8rem; border-radius: 4px; font-size: 0.9rem; font-weight: 700; text-decoration: none; display: inline-block; }

/* =========================================
   Hamburger Menu & Mobile Open State
   ========================================= */
.header__hamburger { display: block; width: 30px; height: 20px; position: relative; background: none; border: none; cursor: pointer; z-index: 1001; }
.header__hamburger span { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--color-primary); transition: all 0.3s; border-radius: 2px; }
.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 9px; }
.header__hamburger span:nth-child(3) { bottom: 0; }
.nav-open .header__nav { display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: #fff; flex-direction: column; justify-content: center; align-items: center; z-index: 1000; }
.nav-open .header__hamburger span:nth-child(1) { transform: rotate(45deg); top: 9px; }
.nav-open .header__hamburger span:nth-child(2) { opacity: 0; }
.nav-open .header__hamburger span:nth-child(3) { transform: rotate(-45deg); bottom: 9px; }

/* =========================================
   Footer (フッターセクション)
   ========================================= */
.footer { background-color: var(--color-primary); color: #fff; padding: 4rem 0 1rem; }
.footer__inner { display: flex; flex-direction: column; gap: 3rem; margin-bottom: 3rem; }
.footer__info { max-width: 400px; }
.footer__logo { font-family: var(--font-main); font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: 0.05em; }
.footer__desc { font-size: 0.9rem; line-height: 1.8; color: rgba(255, 255, 255, 0.8); }
.footer__nav-wrapper { display: flex; flex-direction: column; gap: 2rem; }
.footer__nav, .footer__sub-nav { list-style: none; padding: 0; margin: 0; }
.footer__nav li, .footer__sub-nav li { margin-bottom: 0.8rem; }
.footer__nav a, .footer__sub-nav a { color: rgba(255, 255, 255, 0.9); text-decoration: none; transition: opacity 0.3s, color 0.3s; font-size: 0.95rem; }
.footer__nav a:hover, .footer__sub-nav a:hover { opacity: 0.7; color: var(--color-accent); }
.footer__nav a { font-weight: 500; }
.footer__sub-nav a { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer__copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

@media (min-width: 768px) {
    .footer__inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
@media (min-width: 600px) {
    .footer__nav-wrapper { flex-direction: row; gap: 4rem; }
}


/* =========================================
   404 Page (お探しのページは見つかりませんでした)
   ========================================= */
.error-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; background-color: #f8fafc; padding-top: 80px; }
.error-content { max-width: 600px; margin: 0 auto; padding: 3rem 1.5rem; text-align: center; }
.error-icon { font-size: 4rem; color: #cbd5e1; margin-bottom: 0.5rem; }
.error-num { font-family: var(--font-main); font-size: 6rem; font-weight: 700; color: var(--color-primary); line-height: 1; letter-spacing: 0.05em; margin-bottom: 1rem; }
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--color-text); margin-bottom: 1.5rem; }
.error-desc { font-size: 0.95rem; line-height: 1.8; color: var(--color-text-light); margin-bottom: 3rem; }
.error-actions { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }

@media (max-width: 767px) {
    .error-num { font-size: 4rem; }
    .error-title { font-size: 1.2rem; }
    .error-actions { flex-direction: column; gap: 1rem; }
    .error-actions .btn { width: 100%; }
}

/* =========================================
  (法的ページ・規約)
   ========================================= */
.breadcrumbs--page { padding-top: 100px; background-color: #f8fafc; margin-bottom: 0; }
.legal-page { background-color: #f8fafc; padding-bottom: 6rem; padding-top: 2rem; }
.legal-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 2rem; color: var(--color-text); }
.legal-body { background: #fff; padding: 3rem 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.legal-body h2 { font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; margin-bottom: 1.5rem; color: var(--color-primary); }
.legal-body p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; color: var(--color-text); }
.legal-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-body ol li { font-size: 0.95rem; line-height: 1.8; margin-bottom: 0.5rem; color: var(--color-text); list-style-type: decimal; }
.legal-address { font-style: normal; background: #f8fafc; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; font-size: 0.95rem; line-height: 1.8; color: var(--color-text); }

@media (min-width: 768px) {
    .legal-body { padding: 4rem 5rem; }
} 
/* =========================================
   Tokusho Page Styles (特定商取引法・テーブル)
   ========================================= */
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.8; }
.legal-table th, .legal-table td { padding: 1.5rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.legal-table th { background-color: #f8fafc; font-weight: 700; color: var(--color-primary); width: 100%; display: block; }
.legal-table td { display: block; color: var(--color-text); }
.legal-table ul { list-style: disc; padding-left: 1.5rem; margin: 0; }
.legal-table .note { font-size: 0.85rem; color: #64748b; display: block; margin-top: 0.5rem; }

@media (min-width: 768px) {
    .legal-table th { width: 25%; display: table-cell; border-right: 1px solid #e2e8f0; }
    .legal-table td { display: table-cell; }
}

/* =========================================
   Legal Page Template (法的ページ共通)
   ========================================= */
.breadcrumbs--page { padding-top: 100px; background-color: #f8fafc; margin-bottom: 0; }
.legal-page { background-color: #f8fafc; padding-bottom: 6rem; padding-top: 2rem; }
.legal-title { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 2rem; color: var(--color-text); }
.legal-body { background: #fff; padding: 3rem 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; }
.legal-section { margin-bottom: 3rem; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 { font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid #e2e8f0; padding-bottom: 0.5rem; margin-bottom: 1.5rem; color: var(--color-primary); }
.legal-section p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1rem; color: var(--color-text); }
.legal-section ol, .legal-section ul { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--color-text); }
.legal-section ol li { list-style: decimal; margin-bottom: 0.5rem; }
.legal-section ul li { list-style: disc; margin-bottom: 0.5rem; }
.legal-address { font-style: normal; background: #f8fafc; padding: 1.5rem; border-radius: 8px; margin-top: 1rem; font-size: 0.95rem; line-height: 1.8; color: var(--color-text); }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.8; margin-top: 1rem; }
.legal-table th, .legal-table td { padding: 1.2rem; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.legal-table th { background-color: #f8fafc; font-weight: 700; color: var(--color-primary); width: 100%; display: block; }
.legal-table td { display: block; color: var(--color-text); }

@media (min-width: 768px) {
    .legal-body { padding: 4rem 5rem; }
    .legal-table th { width: 25%; display: table-cell; border-right: 1px solid #e2e8f0; }
    .legal-table td { display: table-cell; }
}

/* =========================================
   Floating CV Button (追従型CV：デバイス別)
   ========================================= */
.floating-cv { position: fixed; z-index: 9999; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s, transform 0.4s; }
.floating-cv.is-visible { opacity: 1; visibility: visible; }

/* スマホ用デザイン (下部固定バー) */
@media screen and (max-width: 768px) {
    .floating-cv { bottom: 0; left: 0; width: 100%; transform: translateY(100%); }
    .floating-cv.is-visible { transform: translateY(0); }
    .floating-sp { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(5px); border-top: 1px solid #bfa05d; padding: 10px 15px 15px; box-shadow: 0 -4px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; align-items: center; gap: 8px; }
    .floating-sp__text { font-size: 0.75rem; font-weight: bold; color: #334155; }
    .floating-sp__btn { display: flex; align-items: center; justify-content: center; width: 100%; max-width: 400px; background: #1e293b; color: #fff; text-decoration: none; font-weight: bold; padding: 12px; border-radius: 6px; font-size: 1rem; box-shadow: 0 4px 10px rgba(30, 41, 59, 0.3); transition: background 0.3s; gap: 8px; position: relative; overflow: hidden; }
    .floating-sp__btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shine 3s infinite; }
}

/* PC用デザイン (右下固定ボタン) */
@media screen and (min-width: 769px) {
    .floating-cv { bottom: 30px; right: 30px; transform: translateY(20px); }
    .floating-cv.is-visible { transform: translateY(0); }
    .floating-pc { display: block; position: relative; text-decoration: none; }
    .floating-pc__inner { width: 70px; height: 70px; background: #bfa05d; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; box-shadow: 0 5px 15px rgba(191, 160, 93, 0.4); transition: transform 0.3s, background 0.3s; }
    .floating-pc:hover .floating-pc__inner { transform: scale(1.1); background: #a88b4d; }
    .floating-pc__inner .icon { font-size: 1.8rem; margin-bottom: 2px; }
    .floating-pc__inner .text { font-size: 0.65rem; font-weight: bold; line-height: 1; }
    .floating-pc__balloon { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); background: #334155; color: #fff; font-size: 0.8rem; padding: 6px 12px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity 0.3s, top 0.3s; pointer-events: none; }
    .floating-pc__balloon::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); border-top: 5px solid #334155; border-left: 5px solid transparent; border-right: 5px solid transparent; }
    .floating-pc:hover .floating-pc__balloon { opacity: 1; top: -50px; }
}

@keyframes shine { 0% { left: -100%; } 20% { left: 100%; } 100% { left: 100%; } }


/* =========================================
   AI相談ボタン (追従型：CVボタンの上に置く)
   ※ .floating-cv がPCで bottom:30px + 高さ70px を占めるため、
     それを避けた位置に固定する
   ========================================= */
.ai-consult { position: fixed; right: 30px; bottom: 115px; z-index: 9998; }
.ai-consult__toggle { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: var(--color-white); color: var(--color-primary); border: 1px solid var(--color-border); border-radius: 50px; font-family: var(--font-main); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12); transition: transform 0.3s var(--easing), box-shadow 0.3s; }
.ai-consult__toggle:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); }
.ai-consult__toggle .material-symbols-outlined { font-size: 1.2rem; color: var(--color-accent); }
.ai-consult__panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: 340px; max-height: calc(100vh - 200px); padding: 20px; overflow-y: auto; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18); }
.ai-consult__panel[hidden] { display: none; }
.ai-consult__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ai-consult__lead { font-size: 0.95rem; font-weight: 700; line-height: 1.5; color: var(--color-primary); }
.ai-consult__close { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; background: #f1f5f9; color: var(--color-text-light); border: none; border-radius: 50%; cursor: pointer; transition: background 0.2s, color 0.2s; }
.ai-consult__close:hover { background: var(--color-primary-light); color: var(--color-primary); }
.ai-consult__close .material-symbols-outlined { font-size: 1.1rem; }
.ai-consult__note { font-size: 0.7rem; line-height: 1.6; color: var(--color-text-light); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.ai-consult__note a { color: var(--color-accent); text-decoration: underline; }

/* =========================================
   AI相談フォーム (追従ボタン・記事下で共用)
   現在地 → 質問テンプレート → 質問欄 → AI一覧 の順で並べる
   ========================================= */
.ai-form__page { display: inline-block; padding: 5px 12px; margin-bottom: 12px; background: rgba(15, 118, 110, 0.08); color: var(--color-accent); border-radius: 50px; font-size: 0.72rem; font-weight: 700; line-height: 1.5; letter-spacing: 0.02em; }
.ai-form__presets { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-form__preset { padding: 7px 14px; background: #f1f5f9; color: var(--color-text-light); border: 1px solid var(--color-border); border-radius: 50px; font-family: var(--font-main); font-size: 0.75rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.02em; text-align: left; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.ai-form__preset:hover { background: var(--color-primary-light); color: var(--color-primary); }
.ai-form__preset.is-active { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); font-weight: 700; }
.ai-form__label { display: block; margin-bottom: 6px; font-size: 0.72rem; font-weight: 500; color: var(--color-text-light); }
.ai-form__text { display: block; width: 100%; padding: 12px 14px; background: var(--color-white); color: var(--color-text); border: 1.5px solid #cbd5e1; border-radius: 10px; font-family: var(--font-main); font-size: 0.85rem; line-height: 1.7; letter-spacing: 0.02em; resize: vertical; }
.ai-form__text:focus { outline: none; border-color: var(--color-primary); }
.ai-form__note { font-size: 0.68rem; line-height: 1.6; color: var(--color-text-light); margin-top: 10px; }

/* =========================================
   AIサービス一覧
   ========================================= */
.ai-links { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 2px; }
.ai-links__item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--color-text); text-decoration: none; transition: background 0.2s; }
.ai-links__item:hover { background: #f1f5f9; }
.ai-links__icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; }
.ai-links__icon svg { width: 19px; height: 19px; }
.ai-links__icon--chatgpt { background: rgba(16, 163, 127, 0.10); color: #10a37f; }
.ai-links__icon--claude { background: rgba(217, 119, 87, 0.12); color: #d97757; }
.ai-links__icon--gemini { background: rgba(66, 133, 244, 0.10); color: #4285f4; }
.ai-links__icon--perplexity { background: rgba(32, 128, 141, 0.10); color: #20808d; }
.ai-links__name { flex: 1; min-width: 0; font-size: 0.92rem; font-weight: 700; line-height: 1.4; color: var(--color-primary); }
.ai-links__flag { flex-shrink: 0; padding: 2px 8px; background: #f1f5f9; color: var(--color-text-light); border-radius: 50px; font-size: 0.62rem; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.ai-links__arrow { font-size: 1rem; color: #cbd5e1; }
.ai-links__item.is-copied .ai-links__flag { background: rgba(15, 118, 110, 0.10); color: var(--color-accent); font-weight: 700; }

/* =========================================
   記事下：この記事をAIに聞く
   ========================================= */
.ai-ask { margin-top: 4rem; padding: 1.75rem; background: #f8fafc; border: 1px solid var(--color-border); border-radius: 12px; }
.ai-ask__title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 700; color: var(--color-primary); margin-bottom: 0.5rem; }
.ai-ask__title .material-symbols-outlined { color: var(--color-accent); }
.ai-ask__desc { font-size: 0.85rem; line-height: 1.7; color: var(--color-text-light); margin-bottom: 1.25rem; }
.ai-ask .ai-links { margin-top: 1.25rem; padding: 12px 6px 6px; }

/* =========================================
   Responsive: Mobile (AI相談ボタン)
   ※ スマホは .floating-cv が下部バーになるため、その上に逃がす
     パネルは画面幅いっぱいのシートにして、長くなったら中でスクロールさせる
   ========================================= */
@media screen and (max-width: 768px) {
    .ai-consult { right: 15px; bottom: 100px; }
    .ai-consult__panel { position: fixed; right: 15px; left: 15px; bottom: 150px; width: auto; max-height: 68vh; padding: 18px; }
    .ai-ask { padding: 1.2rem; }
    .ai-ask__title { font-size: 0.95rem; }
    .ai-form__preset { font-size: 0.72rem; padding: 6px 12px; }
}


/* =========================================
   Table of Contents (目次)
   ========================================= */
.toc-container { background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 25px; margin: 30px auto 50px; width: 100%; max-width: 680px; box-sizing: border-box; }
.toc-title { text-align: center; font-weight: bold; font-size: 1.1rem; margin: 0 0 20px 0; color: #1e293b; position: relative; display: flex; justify-content: center; align-items: center; gap: 10px; }
.toc-title::before, .toc-title::after { content: ""; height: 1px; width: 30px; background-color: #cbd5e1; }
.toc-list { margin: 0; padding-left: 20px; color: #334155; }
.toc-list li { margin-bottom: 8px; line-height: 1.5; list-style-type: decimal; }
.toc-list ol { margin-top: 8px; padding-left: 20px; list-style-type: decimal; }
.toc-list a { color: #334155; text-decoration: none; transition: color 0.2s, border-bottom 0.2s; border-bottom: 1px solid transparent; }
.toc-list a:hover { color: #bfa05d; border-bottom-color: #bfa05d; }

@media screen and (max-width: 768px) {
    .toc-container { padding: 20px 15px; }
    .toc-list { padding-left: 1.2em; }
}