/*
Theme Name: mopeco
Author: Owner
Description: Moment People Connection Theme
Version: 1.0.1
*/

/* -------------------------------------------------------
   基本設定
------------------------------------------------------- */
:root {
    --main-color: #FF8709;
    --sub-color: #7483a1;
    --bg-color: #fdfcf8;
    --font-mincho: 'Shippori Mincho', serif;
    --font-gothic: 'Zen Kaku Gothic New', sans-serif;
}

body {
    font-family: var(--font-gothic);
    color: var(--sub-color);
    margin: 0;
    line-height: 1.8;
    letter-spacing: 0.05em;
    background-color: var(--bg-color);
    background-image: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; height: auto; object-fit: cover; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 40px; }

/* 背景のオーブ */
.bg-orb {
    position: fixed; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.4;
    animation: orbFloat 20s infinite alternate ease-in-out;
}
.orb-1 { width: 500px; height: 500px; background: #ffecd2; top: -10%; left: -10%; }
.orb-2 { width: 600px; height: 600px; background: #e6f0ff; bottom: -10%; right: -10%; animation-delay: -5s; }
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* -------------------------------------------------------
   ヘッダー
------------------------------------------------------- */
.site-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; width: 100%; top: 0; z-index: 100;
    box-sizing: border-box; background: rgba(253, 252, 248, 0.8); backdrop-filter: blur(5px);
}
.logo a { font-size: 1.5rem; font-weight: bold; letter-spacing: 0.1em; color: var(--sub-color); }
.pc-nav ul { display: flex; list-style: none; gap: 30px; margin: 0; padding: 0; }
.pc-nav a { font-size: 0.9rem; font-weight: 500; }
.pc-nav a:hover { color: var(--main-color); }

/* PCではスマホメニューを非表示 */
.sp-nav-toggle, .sp-nav { display: none; }

/* -------------------------------------------------------
   メインビジュアル (Hero)
------------------------------------------------------- */
.hero {
    height: 100vh;
    width: 100%;
    /* 上部の余白 */
    padding-top: 100px; 
    padding-bottom: 60px; /* 下部に余裕を持たせる */
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.hero-inner {
    width: 100%; max-width: 1200px; height: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; position: relative;
}
.hero-text {
    width: 35%; position: relative; height: 80%; display: flex; justify-content: center;
}
.hero-jp {
    writing-mode: vertical-rl; font-family: var(--font-mincho);
    font-size: 4rem; font-weight: 500; line-height: 1.8; margin: 0; letter-spacing: 0.15em;
}
.hero-en {
    position: absolute; bottom: 0; left: 0; width: 100%;
    font-size: 0.95rem; color: var(--main-color); letter-spacing: 0.25em;
    font-family: var(--font-gothic); margin: 0; white-space: nowrap;
}
.hero-img { 
    width: 60%; 
    height: 85%; /* ★高さを少し減らしてSCROLLとの被りを防ぐ */
    position: relative; z-index: 1; 
}
.hero-img img {
    height: 100%;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: 20px 20px 0px rgba(255, 135, 9, 0.1);
    animation: morph 8s infinite alternate ease-in-out;
}
@keyframes morph {
    0% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 60% 40% 60% 40%; }
}
.scroll-down {
    position: absolute; 
    bottom: 20px; /* ★位置をさらに下へ */
    left: 50%; transform: translateX(-50%);
    font-size: 0.8rem; letter-spacing: 0.2em; z-index: 2;
}
.scroll-down::after {
    content: ''; display: block; width: 1px; height: 60px;
    background: var(--sub-color); margin: 10px 0 0 5px;
}

/* -------------------------------------------------------
   セクション共通
------------------------------------------------------- */
section { padding: 120px 0; position: relative; }
.flex-container { display: flex; justify-content: space-between; align-items: flex-start; gap: 80px; }
.flex-container.reverse { flex-direction: row-reverse; }
.section-title-area { width: 100px; flex-shrink: 0; }
.title-vertical {
    writing-mode: vertical-rl; font-family: var(--font-mincho);
    font-size: 2.2rem; line-height: 1.5; border-left: 2px solid var(--main-color);
    padding-left: 25px; margin: 0; letter-spacing: 0.1em;
}
.sp-only { display: none; }
.section-content { flex: 1; }
.lead-text { font-family: var(--font-mincho); font-size: 2rem; margin-bottom: 40px; line-height: 1.8; }

/* -------------------------------------------------------
   MEDIA
------------------------------------------------------- */
.section-title-horizontal { text-align: center; margin-bottom: 70px; }
.title-jp-horiz { font-family: var(--font-mincho); font-size: 2.2rem; margin: 0 0 10px 0; }
.title-en-horiz { color: var(--main-color); letter-spacing: 0.2em; font-weight: bold; }
.media-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 50px; }
.media-card a {
    display: block; background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: 0.4s;
}
.media-card a:hover { transform: translateY(-5px); }
.card-img { height: 220px; }
.card-body { padding: 30px; }
.card-body h3 { font-family: var(--font-mincho); font-size: 1.4rem; margin-bottom: 15px; color: var(--sub-color); }
.more-link { color: var(--main-color); font-weight: bold; font-size: 0.9rem; }

/* -------------------------------------------------------
   BLOG
------------------------------------------------------- */
.blog-list { list-style: none; padding: 0; margin-bottom: 50px; }
.blog-list li { border-bottom: 1px solid rgba(116, 131, 161, 0.3); }
.blog-list a { display: flex; align-items: center; padding: 25px 0; }
.blog-list a:hover { padding-left: 10px; color: var(--main-color); }
.blog-list .date { width: 140px; font-weight: bold; color: var(--main-color); }
.btn-underline { border-bottom: 2px solid var(--sub-color); padding-bottom: 5px; font-weight: bold; font-family: var(--font-mincho); }

/* -------------------------------------------------------
   CONTACT & FOOTER
------------------------------------------------------- */
.section-contact { background: rgba(255, 255, 255, 0.6); text-align: center; border-top: 1px solid rgba(0,0,0,0.05); }
.btn-solid {
    display: inline-block; padding: 18px 70px; background: var(--main-color); color: #fff;
    border-radius: 50px; margin-top: 40px; font-weight: bold; box-shadow: 0 10px 20px rgba(255, 135, 9, 0.3);
}
.btn-solid:hover { background: var(--sub-color); transform: translateY(2px); }
.site-footer { background: var(--sub-color); color: #fff; text-align: center; padding: 60px 0; }

/* -------------------------------------------------------
   下層ページ (Single & Page)
------------------------------------------------------- */
.page-header-spacer { height: 30px; background: transparent; }
.page-hero-text { padding: 60px 0 0px; text-align: center; }

/* ★修正箇所：下層ページの幅と余白 */
.single-container {
    max-width: 800px; /* 幅を広がりすぎないように制限 */
    margin: 0 auto;
    padding: 0 20px 100px; /* 上は詰めて下は広めに */
}

.post-header { margin-bottom: 50px; text-align: center; }
.post-date { color: var(--main-color); font-weight: bold; display: block; margin-bottom: 10px; }
.post-title { font-family: var(--font-mincho); font-size: 2rem; line-height: 1.5; }
.post-content p { margin-bottom: 30px; }
.post-content h2 { font-family: var(--font-mincho); font-size: 1.6rem; border-left: 5px solid var(--main-color); padding-left: 15px; margin-top: 60px; margin-bottom: 30px; }
.post-content h3 { font-size: 1.3rem; margin-top: 40px; margin-bottom: 20px; font-weight: bold; }
.post-content img { border-radius: 10px; margin: 5px 0; width: 100%; height: auto; }
.pagination .page-numbers { display: inline-block; padding: 10px 15px; margin: 0 5px; border: 1px solid var(--sub-color); color: var(--sub-color); border-radius: 5px; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--main-color); color: #fff; border-color: var(--main-color); text-decoration: none; }

/* -------------------------------------------------------
   Contact Form 7 カスタム
------------------------------------------------------- */
/* ★修正箇所：フォームの幅と余白 */
.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.form-item { margin-bottom: 30px; }
.form-item label { display: block; font-weight: bold; margin-bottom: 10px; font-family: var(--font-mincho); color: var(--sub-color); }
.form-item .required { font-size: 0.7rem; background: var(--main-color); color: #fff; padding: 2px 8px; border-radius: 4px; margin-left: 10px; vertical-align: middle; }
.wpcf7-form-control-wrap input, .wpcf7-form-control-wrap textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; background: #fcfcfc; font-size: 1rem; box-sizing: border-box; transition: 0.3s; }
.wpcf7-form-control-wrap input:focus, .wpcf7-form-control-wrap textarea:focus { border-color: var(--main-color); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(255, 135, 9, 0.1); }
.form-submit { text-align: center; margin-top: 40px; }
.wpcf7-submit { display: inline-block; padding: 18px 80px; background-color: var(--main-color); color: #fff; font-weight: bold; border: none; border-radius: 50px; cursor: pointer; transition: 0.3s; font-size: 1rem; letter-spacing: 0.1em; }
.wpcf7-submit:hover { background-color: var(--sub-color); transform: translateY(2px); }
.wpcf7-list-item { display: inline-block; margin-right: 20px; margin-bottom: 10px; }
.wpcf7-list-item label { font-weight: normal; cursor: pointer; display: flex; align-items: center; gap: 5px; }

/* -------------------------------------------------------
   ★スマホ対応 (Responsive) 修正・調整版
------------------------------------------------------- */
@media (max-width: 768px) {
    /* PCナビを消す */
    .pc-nav { display: none; }
    
    /* ハンバーガーメニュー */
    .sp-nav-toggle {
        display: block; width: 30px; height: 24px;
        position: relative; cursor: pointer; z-index: 2000;
    }
    .sp-nav-toggle span {
        position: absolute; width: 100%; height: 2px; background-color: var(--sub-color);
        transition: 0.4s; left: 0; border-radius: 2px;
    }
    .sp-nav-toggle span:nth-of-type(1) { top: 0; }
    .sp-nav-toggle span:nth-of-type(2) { top: 11px; }
    .sp-nav-toggle span:nth-of-type(3) { bottom: 0; }
    
    /* アクティブ時の×印 */
    .sp-nav-toggle.active span:nth-of-type(1) { top: 11px; transform: rotate(45deg); }
    .sp-nav-toggle.active span:nth-of-type(2) { opacity: 0; }
    .sp-nav-toggle.active span:nth-of-type(3) { bottom: 11px; transform: rotate(-45deg); }

    /* メニュー画面 */
    .sp-nav {
        display: flex; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background-color: rgba(253, 252, 248, 0.98); z-index: 1500;
        justify-content: center; align-items: center;
        opacity: 0; pointer-events: none; transition: 0.4s;
    }
    .sp-nav.active { opacity: 1; pointer-events: auto; }
    .sp-nav ul { list-style: none; text-align: center; padding: 0; display: block; }
    .sp-nav li { margin-bottom: 30px; }
    .sp-nav a { font-family: var(--font-mincho); font-size: 1.5rem; font-weight: bold; color: var(--sub-color); letter-spacing: 0.1em; }

    /* その他調整 */
    .site-header { padding: 15px 20px; }
    .sp-only { display: block; margin-top: 10px; font-size: 0.8rem; color: var(--main-color); letter-spacing: 0.2em; }
    
    /* ★セクションの上下余白を適切に */
    section { padding: 80px 0; }
    
    /* ★Hero調整（ここが重要！） */
    .hero { 
        height: auto; 
        /* ヘッダーとの距離を大幅に確保（100px -> 160px） */
        padding-top: 30px; 
        /* 下のセクションとの距離 */
        padding-bottom: 100px; 
    }
    
    .hero-inner { 
        flex-direction: column-reverse; 
        padding: 0 20px; 
        display: block; 
    }
    
    .hero-img { 
        width: 100%; 
        height: 300px; 
        /* 画像と文字の間を広げる（20px -> 50px） */
        margin-bottom: 50px; 
    }
    .hero-img img { border-radius: 20px; animation: none; }
    
    .hero-text { 
        width: 100%; height: auto; 
        display: block; text-align: center; 
		margin-bottom:15px;
    }
    
    .hero-jp { 
        writing-mode: horizontal-tb; 
        font-size: 2.2rem; 
        /* 文字と英語の間を少し広げる */
        margin-bottom: 20px; 
		padding-top:40px;
        height: auto; 
    }
    
    .hero-en { 
        position: static; 
        margin-top: 15px; 
		padding-bottom：15px;
        font-size: 0.9rem; 
        display: block; 
    }
    
    /* レイアウト */
    .flex-container, .flex-container.reverse { flex-direction: column; gap: 40px; }
    .container { padding: 0 20px; }
    
    .section-title-area { 
        width: 100%; display: flex; align-items: baseline; gap: 15px; 
        border-bottom: 1px solid var(--main-color); padding-bottom: 10px; 
    }
    .title-vertical { writing-mode: horizontal-tb; border-left: none; padding-left: 0; font-size: 1.6rem; }
    .lead-text { font-size: 1.3rem; }
    .blog-list a { display: block; }
    .blog-list .date { display: block; margin-bottom: 5px; }
    
    /* フォーム */
    .contact-form-container { padding: 30px 20px; }
    .wpcf7-submit { width: 100%; }
    .wpcf7-list-item { display: block; margin-right: 0; margin-bottom: 15px; }
    
    /* ブログ一覧（スマホ） */
    .blog-grid-container { grid-template-columns: 1fr; gap: 30px; }
    .blog-card-img { height: 180px; }
}
/* --- ブログ一覧（画像付きカード）用CSS --- */

/* グリッドコンテナ */
.blog-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 幅に合わせて自動折り返し */
    gap: 40px;
    width: 100%;
}

/* カード本体 */
.blog-card-item a {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.4s;
    height: 100%; /* 高さを揃える */
}

.blog-card-item a:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* 画像エリア */
.blog-card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

/* ホバー時に画像拡大 */
.blog-card-item a:hover .blog-card-img img {
    transform: scale(1.08);
}

/* テキストエリア */
.blog-card-body {
    padding: 25px;
}

.blog-card-date {
    display: block;
    font-size: 0.85rem;
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-family: var(--font-mincho);
}

.blog-card-title {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
    color: var(--sub-color);
    /* 2行以上は省略する設定 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .blog-grid-container {
        grid-template-columns: 1fr; /* スマホは1列 */
        gap: 30px;
    }
    .blog-card-img {
        height: 180px;
    }
}

/* -------------------------------------------------------
   ブログ記事詳細 (Single Page Design) 修正版
------------------------------------------------------- */

/* ★記事エリア全体を白背景のカードにする（読みやすさ改善） */
.single-container {
    max-width: 840px; /* 少し幅を広げる */
    margin: 50px auto;
    padding: 80px 60px; /* 内側の余白をたっぷりと */
    background-color: #fff; /* 白背景 */
    border-radius: 20px; /* 角丸 */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03); /* 浮き上がらせる */
    box-sizing: border-box;
}

/* 本文の基本設定 */
.post-content {
    font-size: 1rem;
    line-height: 2; /* 行間をゆったりと */
    color: #4a4a4a; /* 少し濃いグレーにして読みやすく */
    letter-spacing: 0.05em;
}

.post-content p {
    margin-bottom: 2em; /* 段落間の余白を広めに */
}

/* --- 見出し h2（おしゃれな和モダン風） --- */
.post-content h2 {
    font-family: var(--font-mincho);
    font-size: 1.7rem;
    color: var(--sub-color);
    background: transparent; /* 背景色なし */
    padding: 15px 0 15px 20px; /* 左に余白 */
    border: none; /* 以前の枠線をリセット */
    border-bottom: 1px solid #ddd; /* 下に薄い線 */
    margin-top: 80px;
    margin-bottom: 40px;
    position: relative;
}

/* 左側のオレンジのアクセント */
.post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 70%; /* 高さを少し短くして上品に */
    background-color: var(--main-color);
    border-radius: 2px;
}

/* --- 見出し h3（シンプル＆クリーン） --- */
.post-content h3 {
    font-family: var(--font-gothic);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--sub-color);
    background: transparent;
    padding: 0 0 0 15px;
    border: none;
    border-left: 4px solid var(--sub-color); /* 左にブルーグレーの線 */
    margin-top: 50px;
    margin-bottom: 25px;
}

/* --- リスト等の装飾（微調整） --- */
.post-content ul, .post-content ol {
    background: #fdfdfd; /* ほんの少しグレー */
    border: 1px dashed #ddd; /* 点線で柔らかく */
    padding: 30px 30px 30px 50px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.post-content img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- スマホ対応（余白調整） --- */
@media (max-width: 768px) {
    .single-container {
        padding: 25px 20px; /* スマホでは余白を詰める */
        width: 90%; /* 画面幅いっぱいになりすぎないように */
        border-radius: 12px;
    }
    .post-content h2 {
        font-size: 1.4rem;
        margin-top: 60px;
    }
    .post-content h3 {
        font-size: 1.2rem;
        margin-top: 40px;
    }
}
/* -------------------------------------------------------
   ★スマホ時のブログ文字サイズ調整
------------------------------------------------------- */
@media (max-width: 768px) {
    
    /* 本文の文字を小さく・行間を少し詰める */
    .post-content {
        font-size: 0.9rem; /* 約14px〜15px相当に縮小 */
        line-height: 1.8;  /* 行間も少しタイトに */
    }

    /* 見出しh2もバランスを見て小さく */
    .post-content h2 {
        font-size: 1.3rem;
        margin-top: 50px;
        padding: 10px 0 10px 15px; /* 余白も微調整 */
    }

    /* 見出しh3も小さく */
    .post-content h3 {
        font-size: 1.1rem;
        margin-top: 30px;
    }

    /* リスト（箇条書き）の中身も小さく */
    .post-content ul, 
    .post-content ol {
        font-size: 0.9rem;
        padding: 20px 20px 20px 40px; /* 余白を少し詰める */
    }
    
    /* 記事タイトルのサイズ調整 */
    .post-title {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}

/* --- 関連記事エリアのデザイン --- */
.related-area {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.related-title {
    font-family: var(--font-mincho);
    font-size: 1.5rem;
    text-align: center;
    color: var(--sub-color);
    margin-bottom: 40px;
    letter-spacing: 0.1em;
}

/* スマホ調整 */
@media (max-width: 768px) {
    .related-area {
        margin-top: 60px;
    }
    .related-title {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }
}

/* お問い合わせボタン（追加CSS用） */
.mopeco-cv-container {
  text-align: center;
  margin: 60px 0;
}

.mopeco-cv-btn {
  display: inline-block;
  background-color: #333333;
  color: #ffffff !important;
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 48px;
  border-radius: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #333333;
  line-height: 1.5;
}

.mopeco-cv-btn:hover {
  background-color: #ffffff;
  color: #333333 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mopeco-cv-btn {
    width: 90%;
    padding: 14px 20px;
  }
}