/* パッケージ製品 ページ専用スタイル（一覧／製品詳細） */

/* パンくず */
.breadcrumb {
    background-color: var(--bg-light);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: var(--text-light);
}
.breadcrumb .separator {
    margin: 0 0.4rem;
}

/* ============== 一覧ページ ============== */
.packages-hero {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 50%, #1e3a8a 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    text-align: center;
}
.packages-hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.9rem;
}
.packages-hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

.packages-lead {
    padding: 3.5rem 0 1rem;
}
.packages-lead .lead-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-light);
    border-left: 5px solid #0f766e;
    border-radius: 10px;
    padding: 1.75rem 1.75rem;
}
.packages-lead .lead-card p {
    color: var(--text-dark);
    line-height: 1.9;
}
.packages-lead .lead-card p + p {
    margin-top: 0.9rem;
}

.packages-list {
    padding: 2.5rem 0 4rem;
}
.package-count {
    max-width: 1000px;
    margin: 0 auto 1.25rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.package-cards {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.package-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.package-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.package-card-thumb {
    margin: -0.25rem 0 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-light);
    line-height: 0;
}
.package-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
}
.package-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}
.package-tag {
    display: inline-block;
    background: #ccfbf1;
    color: #115e59;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}
.package-tag.industry {
    background: #e0e7ff;
    color: #3730a3;
}
.package-card h2 {
    font-size: 1.35rem;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.4rem;
}
.package-card .package-kana {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.package-card .package-summary {
    color: var(--text-light);
    line-height: 1.8;
}
.package-points {
    margin: 1rem 0 0;
    padding-left: 1.2rem;
}
.package-points li {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}
.package-card-more {
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============== 製品詳細ページ ============== */
.product-category-bar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0.9rem 0;
    font-size: 0.85rem;
}
.product-category-bar .cat-label {
    color: var(--text-light);
    margin-right: 0.5rem;
}
.product-category-bar .cat-item {
    display: inline-block;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.15rem 0.7rem;
    margin-right: 0.4rem;
    color: var(--text-dark);
}

.product-hero {
    background: var(--bg-light);
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border-color);
}
.product-hero .catchcopy {
    font-size: 0.95rem;
    color: #0f766e;
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.product-hero h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}
.product-hero .product-kana {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.1rem;
}
.product-vendor {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}
.product-vendor a {
    color: var(--primary-color);
}
.product-points {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    max-width: 860px;
}
.product-points h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}
.product-points ul {
    padding-left: 1.2rem;
}
.product-points li {
    line-height: 1.85;
    margin-bottom: 0.3rem;
}
.product-hero-actions {
    margin-top: 1.4rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}
.btn-product {
    display: inline-block;
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(13, 148, 136, 0.4);
}
.btn-product-outline {
    display: inline-block;
    border: 2px solid #0f766e;
    color: #0f766e;
    background: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn-product-outline:hover {
    background: #0f766e;
    color: #fff;
}
.product-updated {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* ページ内ナビ */
.product-anchor-nav {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 20;
}
.product-anchor-nav ul {
    display: flex;
    gap: 0.4rem;
    list-style: none;
    overflow-x: auto;
    padding: 0.6rem 0;
}
.product-anchor-nav a {
    display: inline-block;
    white-space: nowrap;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
}
.product-anchor-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 製品詳細 共通セクション */
.product-section {
    padding: 3.25rem 0;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 60px;
}
.product-section:nth-of-type(even) {
    background: var(--bg-light);
}
.product-section > .container > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    padding-left: 0.75rem;
    border-left: 5px solid #0d9488;
}
.product-section .section-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* 料金プラン */
.price-flags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.price-flag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: #e5e7eb;
    color: #4b5563;
}
.price-flag.on {
    background: #ccfbf1;
    color: #115e59;
}
.plan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.plan-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
}
.plan-card h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}
.plan-card .plan-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.plan-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f766e;
    margin-bottom: 1rem;
}
.plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.plan-table th,
.plan-table td {
    text-align: left;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.plan-table th {
    width: 42%;
    color: var(--text-light);
    font-weight: 600;
}
.plan-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.9rem;
    line-height: 1.7;
}

/* 製品概要 */
.overview-body {
    max-width: 900px;
}
.overview-body > p {
    line-height: 1.95;
    margin-bottom: 1.5rem;
}
.overview-block {
    margin-bottom: 1.5rem;
}
.overview-block h3 {
    font-size: 1.05rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}
.overview-block h3::before {
    content: '■ ';
    color: #0d9488;
}
.overview-block p {
    color: var(--text-light);
    line-height: 1.9;
}

/* 機能 */
.feature-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.feature-group {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
}
.feature-group h3 {
    font-size: 1.05rem;
    color: #0f766e;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}
.feature-group ul {
    padding-left: 1.2rem;
}
.feature-group li {
    font-size: 0.93rem;
    line-height: 1.85;
    color: var(--text-dark);
}

/* 製品イメージ */
.shots-group-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 0.3rem;
}
.shots-group-title:first-of-type {
    margin-top: 0;
}
.shots-group-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}
.product-shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.product-shots.shots-ios {
    grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
    justify-content: start;
}
.product-shot {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.product-shot > a {
    display: block;
    line-height: 0;
    background: var(--bg-light);
}
.product-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.product-shot.shot-tall > a {
    display: block;
    max-height: 420px;
    overflow: auto;
    line-height: 0;
}
.product-shot.shot-tall figcaption::after {
    content: '枠内をスクロールすると全体を確認できます。';
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: #9ca3af;
}
.product-shot figcaption {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}
.product-shot figcaption .shot-id {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}

/* 設計モデル図 */
.model-figures {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.model-figure {
    margin: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.model-figure h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}
.diagram-scroll {
    overflow-x: auto;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.5rem;
}
.diagram-scroll img {
    display: block;
    max-width: 100%;
    height: auto;
    min-width: 640px;
    margin: 0 auto;
}
.diagram-scroll.tall img {
    min-width: 0;
    width: auto;
    max-height: 760px;
    max-width: 100%;
}
.diagram-vscroll {
    max-height: 760px;
    overflow: auto;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 0.5rem;
}
.diagram-vscroll img {
    display: block;
    width: auto;
    max-width: none;
    margin: 0 auto;
}

/* 領域別の図をまとめたグリッド */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.model-grid .model-figure {
    padding: 1rem;
}
.model-grid .model-figure h4 {
    font-size: 0.93rem;
    margin-bottom: 0.6rem;
}
.model-grid .diagram-scroll {
    max-height: 340px;
    overflow: auto;
    padding: 0.35rem;
}
.model-grid .diagram-scroll img {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
}
.model-grid .model-figure figcaption {
    margin-top: 0.6rem;
    font-size: 0.82rem;
}
.model-figure figcaption {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.75;
}
.model-figure figcaption a {
    color: var(--primary-color);
    white-space: nowrap;
}

/* 仕様テーブル */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}
.spec-table th {
    width: 28%;
    background: var(--bg-light);
    color: var(--text-dark);
    font-weight: 600;
}
.spec-table a {
    color: var(--primary-color);
}

/* 注意書きボックス */
.product-notice {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    max-width: 900px;
}
.product-notice h3 {
    font-size: 1rem;
    color: #92400e;
    margin-bottom: 0.6rem;
}
.product-notice ul {
    padding-left: 1.2rem;
}
.product-notice li {
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.85;
}

/* 関連リンク */
.related-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.related-link {
    display: block;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.3rem 1.4rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.related-link .rl-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #0f766e;
    letter-spacing: 0.08em;
}
.related-link h3 {
    font-size: 1rem;
    margin: 0.4rem 0 0.35rem;
    line-height: 1.5;
}
.related-link p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA */
.product-cta {
    background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}
.product-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
}
.product-cta p {
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.9;
    margin-bottom: 1.75rem;
}
.product-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.product-cta .btn-cta-primary {
    display: inline-block;
    background: #fff;
    color: #0f766e;
    padding: 0.95rem 2.4rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}
.product-cta .btn-cta-outline {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 0.85rem 2.1rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}
.product-cta .btn-cta-primary:hover {
    background: #f1f5f9;
}
.product-cta .btn-cta-outline:hover {
    background: #fff;
    color: #0f766e;
}

@media (max-width: 768px) {
    .product-anchor-nav { position: static; }
    .plan-cards,
    .feature-groups,
    .product-shots { grid-template-columns: 1fr; }
    .product-shots.shots-ios { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .spec-table th { width: 38%; }
    .diagram-scroll img { min-width: 520px; }
}
