@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.p-entry-eyecatch {
  display: none;
}

.c-entry-title {
  font-size: 1.5rem;
  font-weight: bold;
  border-left: 6px solid #b80000;
  padding-left: 1rem;
  background-color: #f8f8f8;
  margin: 3rem 0 2rem;
  color: #222;
}

@media (min-width: 1024px) {
  .p-entry {
    max-width: 1200px !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .footer-note-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

body.single .post_content {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
  padding: 2rem 1rem !important;
}

body.single-column .p-entry {
  width: 100vw;
  max-width: none !important;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  box-sizing: border-box;
  padding: 2rem 1rem;
}

.scroll-top-section,
.footer-note-wrap {
  background: #fdfdfd;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
  padding: 3rem 0;
  margin: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  background: #fff;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body > *:last-child {
  margin-bottom: 0 !important;
}

/* フッター */

/* フッター背景 */
.site-footer {
  background: #560f0f;
  color: #fff;
  padding: 3rem 1rem;
  font-size: 0.9rem;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 2;
}

/* TOPへ戻る */
.scroll-top-section {
  background: #f4f2ee;
  text-align: center;
  padding: 2rem 1rem;
}

/* 留意事項背景全体を分離 */

.footer-note__inner {
  max-width: 1000px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: #222;
  line-height: 1.8;
	padding: 0 1rem;
}
.footer-note__inner p {
  margin-bottom: 1.5rem;
}
.footer-note__inner strong {
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 1rem;
}

/* フッター本体 */
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.scroll-top-link {
  text-decoration: none;
  color: #333;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  font-weight: bold;
  font-size: 1rem;
}

.scroll-top-icon {
  width: 36px;
  height: 36px;
  border: 2px solid #333;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 34px;
  text-align: center;
}

.scroll-top-text {
  margin-top: 0.3rem;
}

.footer-note strong {
  font-weight: bold;
  font-size: 1rem;
  display: block;
  margin-bottom: 1rem;
}

.wrapper-navi {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer_logo img {
  width: 150px;
  margin-bottom: 1.5rem;
}

.navi {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 220px;
}

.navi li {
  margin-bottom: 0.5rem;
}

.navi li a {
  color: #fff;
  text-decoration: none;
}

.navi li a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  flex: 1 1 100%;
  margin-top: 2rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #f1f1f1;
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.75rem;
  color: #eee;
}

/* TOPCTA */
.cta-banner {
  background: #fdf8f3; /* やわらかいベージュ */
  padding: 4rem 1rem;
  margin-top: 4rem;
}

.cta-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  gap: 2rem;
}

.cta-banner__text {
  flex: 1;
  min-width: 320px;
}

.cta-banner__title {
  font-size: 2rem;
  font-weight: 700;
  color: #520b0b;
  margin-bottom: 1rem;
}

.cta-banner__subtitle {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.cta-banner__brand img {
  width: 280px;
  margin-bottom: 2rem;
}

.cta-banner__btn {
  display: inline-block;
  background: #7c0b0b;
  color: #fff;
  padding: 0.9em 2em;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.cta-banner__btn:hover {
  background: #600808;
}

.cta-banner__image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.cta-banner__image img {
  max-width: 100%;
  height: auto;
}

/* 記事カード */

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.article-slider {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}

.article-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: #f8f8f8; 
  border-radius: 8px;
  box-shadow: none; 
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.readmore-btn:hover {
  background: #a00000;
  text-decoration: none;
}

.article-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.article-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.article-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.article-content {
  padding: 1em;
}

.article-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5em;
  display: block;
}

.article-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.article-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* トップページスタイル */

.top-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 3em 0 2em;
  color: #333;
  position: relative;
  text-align: center;
}

.top-heading::before,
.top-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
  margin: 0 1rem;
}

.top-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2em;
}

.top-list li {
  margin-bottom: 0.8em;
}

.top-list li a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
}

.top-list li a:hover {
  text-decoration: underline;
}

/* 資産形成ガイド用：投稿メタ（日時＋著者）スタイル */
.single-insight .p-entry-meta {
  background-color: #f7f7f7;
  padding: 0.6em 1em;
  font-size: 0.9rem;
  color: #666;
  border-left: 4px solid #b80000;
  margin-bottom: 2em;
  display: inline-block;
  border-radius: 4px;
}

/* コラム用：投稿メタ（日時＋著者）スタイル */
.p-entry-meta {
  background-color: #f7f7f7;
  padding: 0.6em 1em;
  font-size: 0.9rem;
  color: #666;
  border-left: 4px solid #b80000;
  margin-bottom: 2em;
  display: inline-block;
  border-radius: 4px;
}

.p-entry-meta time,
.p-entry-meta .p-entry-author {
  margin-right: 1em;
  display: inline-block;
}

/* 記事本文行間指定 */
.p-entry-body p {
  line-height: 1.4 !important;
  font-size: 1.05rem;
  margin-bottom: 1.8em;
  letter-spacing: 0.03em;
}

/* 疑似Swellテーブルスタイル */
.p-entry-body table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  margin-bottom: 2em;
  font-size: 1rem;
}

.p-entry-body th,
.p-entry-body td {
  border: 1px solid #ddd;
  padding: 0.8em 1em;
  text-align: center;
}

.p-entry-body tr:nth-child(even) {
  background-color: #f9f9f9;
}

.p-entry-body tr:hover {
  background-color: #f1f1f1;
}

/* 共通：本文内の見出しは p-entry-body 配下で装飾する */
.p-entry-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  border-left: 6px solid #b80000;
  padding-left: 1rem;
  margin: 3em 0 1.5em;
  color: #222;
  background: #f8f8f8;
}

.p-entry-body h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.6;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.3em;
  margin: 2.5em 0 1em;
  color: #333;
}

.p-entry-body h4 {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 2em 0 0.8em;
  color: #444;
  position: relative;
}

.p-entry-body h4::before {
  content: "●";
  color: #b80000;
  margin-right: 0.5em;
  font-size: 0.8em;
  position: relative;
  top: -0.1em;
}

/* Speech Balloon スタイル */
.speech-balloon {
    margin: 30px 0;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.speech-balloon-inner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    max-width: 100%;
    animation: slideInLeft 0.6s ease-out;
}

.speech-balloon-inner:before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid #667eea;
}

.speech-balloon-content {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.speech-balloon-content p {
    margin: 0;
}

/* Timeline Container */
.wp-timeline-container {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
}

.wp-timeline-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wp-timeline-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.wp-timeline-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    z-index: 1;
}

.wp-timeline-steps {
    padding: 0;
}

/* Timeline Step */
.wp-timeline-step {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.wp-timeline-step:last-child {
    border-bottom: none;
}

.wp-timeline-step:hover {
    background: #fafbfc;
}

.wp-step-header {
    display: flex;
    align-items: center;
    padding: 30px;
    cursor: pointer;
    position: relative;
}

.wp-step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    margin-right: 25px;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3); 
    }
    50% { 
        transform: scale(1.05); 
        box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4); 
    }
}

.wp-step-title {
    flex: 1;
}

.wp-step-title h3 {
    font-size: 22px;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 600;
    line-height: 1.3;
}

.step-label {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
    font-weight: 500;
}

.wp-step-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.wp-step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.wp-step-inner {
    position: relative;
    z-index: 1;
}

/* 画像のスタイリング */
.wp-step-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.wp-step-content img:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.wp-step-content .aligncenter {
    display: block;
    margin: 20px auto;
}

/* WordPressの画像クラス対応 */
.wp-step-content .size-large,
.wp-step-content .size-medium,
.wp-step-content .size-full {
    border-radius: 15px;
    transition: all 0.3s ease;
}

/* アニメーション */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-timeline-step {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.wp-timeline-step:nth-child(1) { animation-delay: 0.1s; }
.wp-timeline-step:nth-child(2) { animation-delay: 0.2s; }
.wp-timeline-step:nth-child(3) { animation-delay: 0.3s; }
.wp-timeline-step:nth-child(4) { animation-delay: 0.4s; }
.wp-timeline-step:nth-child(5) { animation-delay: 0.5s; }

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .wp-timeline-container {
        margin: 20px 10px;
        border-radius: 15px;
    }
    
    .wp-timeline-header {
        padding: 30px 20px;
    }
    
    .wp-timeline-title {
        font-size: 24px;
    }
    
    .wp-step-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wp-step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .wp-step-content {
        padding: 30px 20px;
    }
    
    .wp-step-title h3 {
        font-size: 18px;
    }
    
    .speech-balloon-inner {
        padding: 15px 20px;
        margin-left: 20px;
    }
    
    .speech-balloon-inner:before {
        left: -15px;
        border-right-width: 20px;
    }
}

@media (max-width: 480px) {
    .wp-step-header {
        padding: 15px;
    }
    
    .wp-step-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .wp-step-title h3 {
        font-size: 16px;
    }
    
    .wp-step-content {
        padding: 20px 15px;
    }
}

/* WordPress管理画面での表示調整 */
.admin-bar .wp-timeline-container {
    margin-top: 60px;
}

/* テーマとの兼ね合い調整 */
.wp-timeline-container * {
    box-sizing: border-box;
}

.wp-timeline-container p {
    margin-bottom: 0;
}

.wp-timeline-container h3 {
    line-height: 1.3;
}

/* 親テーマの目次を非表示（特定の投稿タイプのみ） */
.single-column .p-toc,
.single-insight .p-toc,
.single-notice .p-toc,
.single-column [class*="toc-container"],
.single-insight [class*="toc-container"],
.single-notice [class*="toc-container"] {
    display: none !important;
}

/* 目次内のh2タグをリセット */
.formal-toc h2.swell-toc-title {
    all: unset !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.05em !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Arial', 'Noto Sans JP', sans-serif !important;
    display: block !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* SEO最適化された目次スタイル - フォーマルな投資会社デザイン */
.swell-toc-wrapper.custom-toc-wrapper.formal-toc {
    margin: 3rem 0 4rem;
    max-width: 100%;
}

.formal-toc .swell-toc.custom-toc {
    background: #ffffff;
    border: 1px solid #2c3e50;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.formal-toc .swell-toc-header {
    background: #2c3e50 !important;
    padding: 1.5rem 2rem !important;
    margin: 0 !important;
    border-bottom: 3px solid #6d071a !important;
    border: none !important;
    border-left: none !important;
    display: block !important;
}

.formal-toc .swell-toc-title {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.05em !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', 'Arial', 'Noto Sans JP', sans-serif !important;
    background: transparent !important;
    border: none !important;
    line-height: 1.5 !important;
    display: block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.formal-toc .swell-toc-content {
    padding: 2rem;
    background: #fafbfc;
}

.formal-toc .swell-toc-list {
    margin: 0;
    padding: 0;
}

.formal-toc .swell-toc-item {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.formal-toc .swell-toc-item:last-child {
    border-bottom: none;
}

.formal-toc .swell-toc-item:hover {
    background: rgba(109, 7, 26, 0.02);
}

/* h2レベル */
.formal-toc .swell-toc-item-h2 .swell-toc-link {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

/* h3レベル */
.formal-toc .swell-toc-item-h3 .swell-toc-link {
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    color: #495057;
    font-size: 0.95rem;
}

/* h4レベル */
.formal-toc .swell-toc-item-h4 .swell-toc-link {
    padding: 0.6rem 1.5rem 0.6rem 4.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.formal-toc .swell-toc-link {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    transition: all 0.2s ease;
    line-height: 1.5;
}

.formal-toc .swell-toc-link:hover {
    color: #6d071a;
    background: rgba(109, 7, 26, 0.03);
}

.formal-toc .toc-number {
    flex-shrink: 0;
    margin-right: 1rem;
    font-weight: 500;
    color: #6d071a;
    min-width: 2.5rem;
}

/* h2の番号 */
.formal-toc .swell-toc-item-h2 .toc-number {
    font-size: 1rem;
}

/* h3の番号 */
.formal-toc .swell-toc-item-h3 .toc-number {
    font-size: 0.95rem;
}

/* h4の番号（ビュレット） */
.formal-toc .swell-toc-item-h4 .toc-number {
    font-size: 1.2rem;
    line-height: 1;
    min-width: 1.5rem;
}

.formal-toc .toc-text {
    flex: 1;
    line-height: 1.6;
}

/* 現在位置のハイライト */
.formal-toc .swell-toc-link.current {
    color: #6d071a;
    font-weight: 600;
    background: rgba(109, 7, 26, 0.05);
    border-left: 3px solid #6d071a;
    margin-left: -1px;
}

/* スムーススクロール時のハイライト */
@keyframes highlight {
    0% { background-color: rgba(109, 7, 26, 0.2); }
    100% { background-color: transparent; }
}

h2:target,
h3:target,
h4:target {
    animation: highlight 2s ease;
    scroll-margin-top: 80px;
}

/* モバイル対応 - フォーマル目次 */
@media (max-width: 768px) {
    .formal-toc {
        margin: 2rem -1rem 3rem;
    }
    
    .formal-toc .swell-toc {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .formal-toc .swell-toc-header {
        padding: 1.2rem 1.5rem;
    }
    
    .formal-toc .swell-toc-title {
        font-size: 1rem;
    }
    
    .formal-toc .swell-toc-content {
        padding: 1.5rem;
    }
    
    .formal-toc .swell-toc-item-h2 .swell-toc-link {
        padding: 0.8rem 1rem;
    }
    
    .formal-toc .swell-toc-item-h3 .swell-toc-link {
        padding: 0.7rem 1rem 0.7rem 2rem;
    }
    
    .formal-toc .swell-toc-item-h4 .swell-toc-link {
        padding: 0.6rem 1rem 0.6rem 3rem;
    }
    
    .formal-toc .toc-number {
        min-width: 2rem;
    }
}

/* プリント対応 */
@media print {
    .formal-toc .swell-toc {
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .formal-toc .swell-toc-header {
        background: #f0f0f0;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .formal-toc .swell-toc-title {
        color: #000;
    }
}