/*
Theme Name: 参謀プログラム
Theme URI: https://example.com/sanbou
Author: 世界をまるにする株式会社
Author URI: https://example.com
Description: 参謀プログラム公式サイト用WordPressテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sanbou-theme
*/
:root {
    --text-color: #000;
    --bg-color1: #fff;
    --bg-color2: #fbfcfd;
    --color1: #003F73;
    --color2: #2888CC;
    --color3: #C8E8FF;
    --color4: #EDF6FF;
    --color-accent: #FFC107;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
}
a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.arrow {
    font-size: .6rem;
    margin-left: 8px;
    color: var(--color1);
    background: var(--color4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 4px 8px;
    border-radius: 50%;
}
/* Header */
header {
    background: var(--bg-color1);
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    padding: 0 24px;
    width: 100%;
    height: 80px;
    top: 0;
    z-index: 1000;
}
.header-inner {
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.logo {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 24px;
}
.logo img{
    height: 100%;
}

.header-nav {
    flex: 1;
    height: 100%;
}
.header-nav ul {
    display: flex;
    list-style: none;
    gap: 0;
    height: 100%;
}
.header-nav li {
    position: relative;
    height: 100%;
}
.header-nav a {
    font-weight: bold;
    color: var(--text-color);
    transition: color 0.3s, background 0.3s;
    padding: 0 16px;
    align-items: center;
    display: flex;
    height: 100%;
}
.header-nav a:hover {
    color: var(--color1);
    background: #f8fafc;
}
/* Hamburger Menu Toggle */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 80px;
    height: 80px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    margin-left: auto;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3000;
}
.menu-toggle span {
    display: block;
    width: 48px;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.3s, opacity 0.3s;
    position: relative;
}
.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--text-color);
    transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle span::before {
    top: -12px;
}
.menu-toggle span::after {
    top: 12px;
}
.menu-toggle:hover span,
.menu-toggle:hover span::before,
.menu-toggle:hover span::after {
    background: var(--color1);
}
.slide-menu.active + .menu-toggle{
    z-index: 3000;
}
.slide-menu.active + .menu-toggle span::before{
    display: none;
    transition: display 0.3s;
}
.slide-menu.active + .menu-toggle span {
    transform: rotate(45deg);
    transform-origin: center;
}
.slide-menu.active + .menu-toggle span::after {
    top: 0;
    transform: rotate(-90deg);
    transform-origin: center;
}
/* Slide Menu Overlay */
.slide-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.slide-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
/* Slide Menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100%;
    background: var(--bg-color1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
}
.slide-menu.active {
    right: 0;
}
.slide-menu-content {
    padding: 70px 0 30px;
}
.slide-menu-list {
    list-style: none;
}
.slide-menu-item {
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.slide-menu-item a {
    display: block;
    padding: 18px 25px;
    font-size: 0.95rem;
    color: var(--text-color);
    flex: 1;
    transition: background 0.3s;
}
.slide-menu-item a:hover {
    background: #f8fafc;
}
.expand-icon {
    padding: 18px 25px;
    color: var(--color1);
    font-size: 1.1rem;
    cursor: pointer;
}
.slide-menu-divider {
    height: 20px;
    background: #f8fafc;
}
/* Hero Carousel */
.hero-carousel {
    margin-top: 60px;
    padding: 30px 0 20px;
    
    position: relative;
}
.carousel-container {
    position: relative;
    margin: 0 auto;
    padding: 0 60px;
    overflow: visible;
}
.carousel-container .swiper-slide {
    width: auto;
}
.carousel-card {
    display: block;
    box-shadow: 0px 1px 2px 0px #FFF inset, 0px -1px 1px 0px rgba(4, 24, 80, 0.2) inset, 0px 4px 10px 0px rgba(0, 30, 111, 0.18);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0px 1px 2px 0px #FFF inset, 0px -1px 1px 0px rgba(4, 24, 80, 0.2) inset, 0px 8px 20px 0px rgba(0, 30, 111, 0.25);
}
.carousel-card-content {
    padding: 50px 40px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-color);
    border-radius: 16px;
    position: relative;
}
.carousel-image {
    width: 60%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}
.carousel-card-content::after {
    display: contents;
    background-color: var(--color3);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.carousel-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
}
.carousel-desc {
    font-size: 1rem;
    opacity: 0.95;
    margin-bottom: 25px;
}
.carousel-btns {
    display: flex;
    gap: 12px;
    position: absolute;
    bottom: 40px;
}

/* Carousel Nav */
.carousel-nav {
    max-width: 1200px;
    margin: 12px auto 0;
    position: relative;
    display: flex;
    justify-content: end;
}

/* Carousel Arrows */
.carousel-arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.carousel-arrow {
    width: 36px;
    height: 36px;
    background: var(--color4);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    color: var(--color1);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
    transition: background 0.3s, box-shadow 0.3s;
}
.carousel-arrow:hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
/* Hero Buttons
.hero-buttons {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
}
.hero-buttons a {
    width: 300px;
}*/
/* Carousel Dots (Swiper Pagination) */
.carousel-dots {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: -8px;
}
.carousel-dots .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: #cbd5e1;
    opacity: 1;
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
}
.carousel-dots .swiper-pagination-bullet-active {
    width: 24px;
    background: #2563eb;
}
/* Buttons */
.btn-primary,
.btn-secondary {
    color: var(--bg-color1);
    border: none;
    padding: 16px 32px;
    border-radius: 999px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color1);
}

.btn-secondary {
    background-color: var(--color2);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(7, 7, 7, 0.3);
}

/* Section Common */
section {
    padding: 64px 20px;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: #1a365d;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
/* Solutions */

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.solution-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}
.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.solution-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.solution-content {
    padding: 20px 20px 64px 20px;
}
.solution-badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 8px;
}
.solution-title {
    color: #1a365d;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.solution-subtitle {
    color: #64748b;
    font-size: 0.8rem;
    margin-bottom: 10px;
}
.solution-desc {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 15px;
}
.solution-link {
    display: inline-flex;
    align-items: center;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: bold;
    gap: 5px;
    position: absolute;
    right: 20px;
    bottom: 20px;
}
.solution-link .arrow {
    font-size: 0.7rem;
}
/* Three Layers */
.three-layers {
    background: #fff;
    color: var(--text-color);
}
.three-layers .section-title {
    color: var(--color1);
}
.layer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.layer-tile {
    position: relative;
    overflow: hidden;
}
.layer-tile-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
}
.layer-tile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s;
}
.layer-tile:hover .layer-tile-image img {
    transform: scale(1.05);
}
.layer-tile-content {
    padding: 20px 24px 28px;
    background: #fff;
}
.layer-tile-label {
    font-size: 0.75rem;
    color: var(--color2);
    display: block;
    margin-bottom: 4px;
}
.layer-tile-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color1);
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}
.layer-tile-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--color1);
    display: inline;
    vertical-align: middle;
}
.layer-tile-desc {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
    margin-top: 12px;
}
/* Use Cases */
.use-cases {
    background: #fff;
}
.case-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto 50px;
}
.case-title {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 30px;
    text-align: center;
}
.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.before, .after {
    padding: 25px;
    border-radius: 10px;
}

.before h4, .after h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.before h4 {
    color: #dc2626;
}
.after h4 {
    color: #16a34a;
}
.case-image {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
}
.case-image img {
    width: 100%;
    height: auto;
    display: block;
}
/* Troubles */
.troubles-title {
    font-size: 1.5rem;
    color: #1a365d;
    margin-top: 60px;
    margin-bottom: 30px;
}
.troubles-container {
    position: relative;
    padding: 0 50px;
}
.troubles-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.troubles-grid::-webkit-scrollbar {
    display: none;
}
.trouble-card {
    flex: 0 0 180px;
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}
.trouble-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.trouble-icon-box {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trouble-icon {
    font-size: 2rem;
}
.trouble-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 10px;
}
.trouble-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #1a365d;
    line-height: 1.4;
}
.troubles-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.troubles-arrow:hover {
    background: #f8fafc;
}
.troubles-prev {
    left: 0;
}
.troubles-next {
    right: 0;
}
.troubles-more {
    text-align: center;
    margin-top: 25px;
}
.troubles-more a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: bold;
}
.troubles-more span {
    font-size: 0.7rem;
}
/* News */
.news {
    
}
.news-box {
    background: #fbfcfd;
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: inset 0 1px 2px 0 #fff, inset 0 -1px 1px 0 rgba(4, 24, 80, .2), 0 4px 16px 0 rgba(0, 30, 111, .18);
}
.news-title {
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 30px;
    font-weight: bold;
}
.news-list {
    list-style: none;
}
.news-item {
    border-bottom: 1px solid #e5e7eb;
}
.news-item:first-child {
    border-top: 1px solid #e5e7eb;
}
.news-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: opacity 0.3s;
}
.news-link:hover {
    opacity: 0.7;
}
.news-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.news-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.news-date {
    color: #1a365d;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}
.news-tag {
    display: inline-block;
    padding: 0 6px;
    border-radius: 3px;
    color: var(--bg-color1);
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}
.tag-new{
    background: var(--color1);
}
.tag-event,
.tag-info {
    background: var(--color2);
}
.tag-important{
    background: var(--color-accent);
}

.news-text {
    flex: 1;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-more {
    text-align: center;
    margin-top: 30px;
}
.news-more a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--color1);
    font-size: 0.9rem;
    font-weight: bold;
}
.news-more span {
    font-size: 0.7rem;
}
/* Trust */
.trust {
    background: #fff;
}
.trust-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.trust-stats h3 {
    font-size: 1.5rem;
    color: #1a365d;
    margin-bottom: 20px;
}
.trust-stats p {
    color: #64748b;
    margin-bottom: 15px;
}
.profile-box {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
}
.profile-box h3 {
    color: #1a365d;
    margin-bottom: 10px;
}
.profile-box .name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
}
/* Pricing */
.pricing {
    background: #fff;
}
.pricing-table {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.pricing-card {
    background: #f0f6fc;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}
.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.pricing-card-title {
    font-size: 1.3rem;
    color: var(--color1);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.pricing-card-title svg {
    width: 24px;
    height: 24px;
    color: var(--color1);
    flex-shrink: 0;
}
.pricing-card-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
}
.pricing-card-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color1);
    margin-bottom: 16px;
}
.pricing-card-price span {
    font-size: 0.9rem;
    font-weight: normal;
    color: #64748b;
}
.pricing-features {
    text-align: left;
    margin: 0 0 24px 0;
    padding: 0;
}
.pricing-features li {
    list-style: none;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.6;
}
.pricing-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #475569;
}
.pricing-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}
.pricing-btn-filled {
    background: #d0e8f7;
    color: var(--color1);
    border: none;
}
.pricing-btn-filled:hover {
    background: #bddcf0;
}
.pricing-btn-outline {
    background: transparent;
    color: #e05a6a;
    border: 2px solid #e05a6a;
}
.pricing-btn-outline:hover {
    background: #e05a6a;
    color: #fff;
}
/* Footer */
footer {
    color: var(--bg-color1);
    background-color: var(--color2);
}
.footer-content {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 4.8rem;
    margin: 0 auto;
    padding: 5.6rem 0 8rem;
}
.footer-logo {
    font-size: 1.2rem;
    font-weight: bold;
}
.footer-menu {
    display: flex;
    gap: 40px;
    justify-content: center;
}
.footer-menu ul {
    list-style: none;
}
.footer-menu li {
    margin-bottom: 10px;
}
.footer-menu a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.footer-menu a:hover {
    color: #fff;
}
.footer-right ul {
    list-style: none;
}
.footer-right li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding: .4rem 0;
    background-color: var(--color1);
    color: var(--bg-color1);
    font-size: 0.9rem;
}
/* Responsive */
@media (max-width: 1200px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .layer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .before-after {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    .header-inner {
        gap: 20px;
    }
}
@media (max-width: 768px) {
    section {
        padding: 80px 16px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .carousel-container {
        padding: 0 20px;
    }
    .carousel-card-content {
        padding: 16px;
        min-height: 400px;
    }
    .carousel-title {
        font-size: 1.4rem;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .carousel-prev {
        left: 5px;
    }
    .carousel-next {
        right: 5px;
    }
    .carousel-btns {
        font-size: 12px;
        gap: 8px;
        position: absolute;
        transform: translateX(-50%);
        bottom: 24px;
        left: 50%;
        flex-direction: column;
    }
    .carousel-btns button {
        padding: 12px 36px;
    }
    .solution-grid {
        grid-template-columns: repeat(1, .8fr);
        gap: 16px;
        justify-content: center;
    }
    .solution-image {
        height: 120px;
    }
    .case-box {
        padding: 16px;
    }
    .case-title {
        font-size: 1.2rem;
    }
    .news-box {
        padding: 24px;
        border-radius: 16px;
    }
    .news-link {
        flex-wrap: wrap;
    }
    .news-meta {
        width: 100%;
    }
    .news-text {
        width: 100%;
    }
    .before-after {
        grid-template-columns: 1fr;
    }
    .trust-content {
        grid-template-columns: 1fr;
    }
    .pricing-table {
        grid-template-columns: 1fr;
    }
    .layer-grid {
        grid-template-columns: 1fr;
    }
    .layer-tile-image {
        height: 200px;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-menu {
        flex-direction: column;
        gap: 20px;
    }
}
