/* 基本設定 */
:root {
    --primary-color: #FF8C00;
    --primary-hover: #E67E00;
    --text-color: #333;
    --bg-gray: #F8FAFB;
    --white: #ffffff;
}

/* 日本語の自然な改行用クラス */
.ib {
    display: inline-block;
    vertical-align: top;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; color: var(--text-color); -webkit-font-smoothing: antialiased; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section-padding-sm { padding: 60px 0; }
.bg-gray { background-color: var(--bg-gray); }
.bg-orange { background-color: var(--primary-color); }
.white { color: var(--white); }

img { max-width: 100%; height: auto; display: block; }

/* ヘッダー & ハンバーガーメニュー */
header { background: var(--white); height: 75px; display: flex; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--primary-color); }

.nav-links { display: flex; list-style: none; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { text-decoration: none; color: var(--text-color); font-weight: bold; font-size: 0.9rem; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.nav-cta { background: var(--primary-color); color: var(--white) !important; padding: 10px 22px; border-radius: 4px; transition: background 0.3s !important; }
.nav-cta:hover { background: var(--primary-hover); }

/* メニューボタン */
.menu-btn { display: none; background: none; border: none; cursor: pointer; z-index: 1100; padding: 10px; }
.menu-btn span { display: block; width: 25px; height: 2px; background: var(--primary-color); margin-bottom: 6px; transition: 0.3s; }
.menu-btn span:last-child { margin-bottom: 0; }

/* メニューオープン時のバツ印 */
.menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ヒーロー */
.hero { background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=2000'); background-size: cover; background-position: center; color: var(--white); padding: 120px 0; text-align: center; }
.hero h1 { font-size: 3.2rem; margin-bottom: 25px; line-height: 1.3; font-weight: 900; }
.highlight { color: var(--primary-color); }
.hero .description { font-size: 1.15rem; max-width: 850px; margin: 0 auto 40px; }
.cta-button { display: inline-block; background: var(--primary-color); color: var(--white); padding: 20px 45px; border-radius: 50px; font-size: 1.35rem; font-weight: bold; text-decoration: none; box-shadow: 0 5px 20px rgba(255,140,0,0.4); transition: 0.3s; }
.cta-button:hover { background: var(--primary-hover); transform: translateY(-2px); }

/* セクションタイトル */
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; position: relative; font-weight: 700; line-height: 1.4; }
.section-title::after { content: ''; display: block; width: 50px; height: 4px; background: var(--primary-color); margin: 15px auto 0; }
.section-title.left { text-align: left; }
.section-title.left::after { margin: 15px 0 0; }

/* 解決ブリッジ */
.solution-bridge { background: var(--white); padding: 40px 0; text-align: center; }
.bridge-text { font-size: 2rem; font-weight: 900; color: var(--primary-color); line-height: 1.4; }

/* アドシェアードとは */
.section-padding-about { padding: 100px 0; }
.about-flex { display: flex; align-items: center; gap: 60px; justify-content: space-between; }
.about-text { flex: 1; }
.about-text p { font-size: 1.1rem; line-height: 1.9; }
.highlight-text { font-size: 1.4rem; font-weight: bold; color: var(--primary-color); margin-bottom: 20px; }
.ratio-about { width: 100%; max-width: 580px; aspect-ratio: 1000 / 750; object-fit: cover; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

/* 強み */
.benefit-flex { display: flex; align-items: center; gap: 60px; }
.benefit-list { flex: 1.2; }
.benefit-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.benefit-icon { background: var(--white); color: var(--primary-color); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 900; flex-shrink: 0; }
.ratio-4-3 { width: 100%; max-width: 450px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; border: 3px solid #fff; }

/* 料金プラン */
.plan-flex-container { display: flex; gap: 20px; align-items: stretch; margin-top: 35px; }
.plan-main-visual { flex: 1.2; }
.plan-side-group { flex: 1; display: flex; flex-direction: column; gap: 15px; justify-content: space-between; }
.plan-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 25px; transition: 0.3s; }
.plan-card.featured { border: 3px solid var(--primary-color); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.plan-card.large { height: 100%; padding: 50px 30px; text-align: center; }
.plan-card.large .plan-name { font-size: 1.7rem; font-weight: 900; margin-bottom: 15px; }
.plan-card.large .plan-price { font-size: 1.5rem; color: var(--primary-color); font-weight: 900; }
.plan-card.large .plan-price span { font-size: 3.8rem; }
.plan-card.horizontal { display: flex; justify-content: space-between; align-items: center; padding: 22px 25px; flex: 1; }
.plan-card.horizontal .plan-name { font-weight: bold; }
.plan-card.horizontal .plan-price-small { font-weight: 900; color: var(--primary-color); }

/* 注意書きの段落下げ */
.plan-notice { text-align: center; font-size: 0.85rem; color: #777; margin-top: 35px; line-height: 1.8; }
.plan-notice span { display: block; margin-top: 10px; padding-left: 1em; text-indent: -1em; }

/* 業務内容注釈 */
.task-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.task-card { background: #fff; padding: 30px; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.task-note-container { margin-top: 40px; text-align: center; }
.task-note-inner { display: inline-block; padding: 25px 35px; background: #fffdf5; border: 2px dashed var(--primary-color); border-radius: 10px; }

/* 比較表 */
.table-scroll { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 700px; background: #fff; }
.comparison-table th, .comparison-table td { padding: 15px; border: 1px solid #ddd; text-align: center; }
.comparison-table th { background: #eee; font-weight: 700; }
.comparison-table .highlight-cell { background: #fff8f0; font-weight: bold; border: 2px solid var(--primary-color); }

/* FAQ */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; margin-bottom: 10px; background: #fff; border-radius: 8px; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 20px; font-size: 1.1rem; font-weight: 900; color: var(--primary-color); background: none; border: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; outline: none; }
.faq-question::after { content: '+'; font-size: 1.5rem; transition: 0.3s; }
.faq-item.active .faq-question::after { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: 0.3s ease-out; padding: 0 20px; color: #555; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 20px 20px; }

/* クロージング */
.closing { background: #222; text-align: center; padding: 90px 0; }
.closing-text { margin-bottom: 60px; font-size: 1.2rem; }
.company-link { margin-top: 35px; color: #999; font-size: 0.9rem; }
.company-link a { color: #999; text-decoration: underline; }

/* フッター */
footer { padding: 35px 0; text-align: center; color: #999; font-size: 0.8rem; background: #222; border-top: 1px solid #333; }

/* レスポンシブ */
@media (max-width: 850px) {
    .section-padding-sm { padding: 45px 0; }
    .hero { padding: 80px 0; }
    .hero h1 { font-size: 2.1rem; }
    .section-title { font-size: 1.7rem; }
    .bridge-text { font-size: 1.5rem; }

    /* モバイルメニュー */
    .menu-btn { display: block; }
    .nav-links { 
        position: fixed; 
        top: 75px; 
        right: -100%; 
        width: 80%; 
        height: calc(100vh - 75px); 
        background: #fff; 
        flex-direction: column; 
        padding: 50px 30px; 
        transition: 0.4s cubic-bezier(0.1, 0.7, 0.1, 1); 
        box-shadow: -10px 0 20px rgba(0,0,0,0.1); 
        align-items: flex-start;
    }
    .nav-links.active { right: 0; }
    .nav-links li { margin: 15px 0; width: 100%; }
    .nav-links a { font-size: 1.1rem; display: block; width: 100%; padding: 10px 0; }
    .nav-cta { text-align: center; margin-top: 20px; }
    
    .about-flex, .benefit-flex, .plan-flex-container { flex-direction: column; gap: 35px; }
    .benefit-image-large, .about-image { width: 100%; order: -1; display: flex; justify-content: center; }
    .ratio-about, .ratio-4-3 { max-width: 100%; }

    .plan-card.horizontal { padding: 18px; }
    .plan-card.horizontal .plan-name { font-size: 0.95rem; }
}