/*
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: 0;
    padding: 30px 0 20px;
    
    position: relative;
}

/* Keep original sections white after inserting new2 blocks */
.hero-carousel,
.solutions {
    background: #fff !important;
}

.swiper.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: 20px 0px;
}
.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;
}
.footer-right a {
    color: rgba(255,255,255,0.8);
    transition: color 0.3s;
}
.footer-right a:hover {
    color: #fff;
}

.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: 16px 0px;
    }
    .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;
    }
}

/* ===============================
   LP Archive Base
=================================*/

.lp-archive {
  padding: 120px 20px 80px;
  background: var(--bg-color2);
}

.lp-archive-inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* ===============================
   Title: New Articles
=================================*/

.lp-archive-title {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 60px;
  color: var(--color1);
  letter-spacing: 3px;
}

/* ===============================
   List Layout（縦1カラム）
=================================*/

.lp-archive-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  text-align: left;
}

/* ===============================
   Card
=================================*/

.lp-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  padding: 26px 30px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-color);
  border: 1px solid #e5e7eb;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* ===============================
   Thumbnail（左）
=================================*/

.lp-thumb {
  flex: 0 0 220px;
  position: relative;
}

.lp-thumb::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}

.lp-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
   Text Content（右）
=================================*/

.lp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* カテゴリー */

.lp-category {
  display: inline-block;
  width: fit-content;   /* ← これ重要 */
  align-self: flex-start;  /* ← flex引き伸ばし解除 */
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  background: #003f73;
  color: #fff;
  border-radius: 999px;
}

/* 記事タイトル */

.lp-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-color);
}

/* 読むリンク（なしでもOK） */

.lp-more {
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  color: var(--color1);
  text-decoration: underline;
  letter-spacing: .3px;
}

/* ===============================
   Responsive
=================================*/

@media screen and (max-width: 768px) {

  .lp-card {
    flex-direction: column;
    text-align: center;
  }

  .lp-thumb {
    width: 100%;
  }

  .lp-thumb img {
    height: 220px;
  }

  .lp-content {
    padding-top: 16px;
  }

  .lp-archive-title {
    font-size: 42px;
    margin-bottom: 40px;
  }

  .lp-title {
    font-size: 18px;
  }
}

/* ================================
   SINGLE PAGE
================================ */

/* Fixed header + hero-wave overlap safe area */
#single {
  padding-top: 120px;
}

/* ヒーロー画像 */
.single-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* 記事中央エリア */
.single-wrapper {
  width: 100%;
  margin-top: 5vw;
}

.single-inner {
  width: 60%;
  margin: 0 auto;
}

/* タイトル */
.single-title {
  font-size: 2.2vw;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1vw;
}

/* 日付 */
.single-date {
  font-size: 0.9vw;
  color: #98907e;
  margin-bottom: 3vw;
  letter-spacing: 0.1em;
}

.single-thumbnail {
  margin: 0 0 32px;
}

.single-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

/* 本文 */
.single-content {
  font-size: 1vw;
  line-height: 2;
}

.single-content p {
  margin-bottom: 2vw;
}

/* 画像 */
.single-content img {
  max-width: 100%;
  height: auto;
  margin: 2vw 0;
}

/* ================================
   SINGLE PAGE HERO（急な波）
================================ */

/* ===== 強制リセット ===== */
.single-hero {
  position: relative;
  height: 0;
  line-height: 0;
  overflow: visible !important; /* ← 重要 */
}

.single-hero img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: #eaf4ff;

  -webkit-clip-path: polygon(
    0% 50%,      /* ← 起点：画像の半分 */
    15% 48%,
    25% 55%,
    35% 75%,     /* 急降下開始 */
    45% 95%,     /* 最深部 */
    55% 100%,    /* 一番下 */
    65% 85%,     /* 急上昇 */
    75% 65%,
    85% 55%,
    95% 50%,
    100% 48%,    /* 右端で少し整える */
    100% 100%,
    0% 100%
  );

  clip-path: polygon(
    0% 50%,
    15% 48%,
    25% 55%,
    35% 75%,
    45% 95%,
    55% 100%,
    65% 85%,
    75% 65%,
    85% 55%,
    95% 50%,
    100% 48%,
    100% 100%,
    0% 100%
  );
}

/* ===== 下背景 ===== */
.single-wrapper {
  background: #eaf4ff;
  margin-top: -1px;
}

/* スマホ */
@media screen and (max-width: 1000px) {
  #single {
    padding-top: 128px;
  }

  .single-inner {
    width: 90%;
  }

  .single-title {
    font-size: 6vw;
  }

  .single-date {
    font-size: 3.5vw;
  }

  .single-thumbnail {
    margin-bottom: 24px;
  }

  .single-thumbnail img {
    max-height: 280px;
    border-radius: 12px;
  }

  .single-content {
    font-size: 4vw;
  }

}

/* Front page overrides against new2 common.css globals */
body.home .news {
  background: #fff !important;
}

body.home .news-box {
  background: #fff !important;
}

body.home footer {
  background-color: var(--color2) !important;
  color: var(--bg-color1) !important;
}

body.home .copyright {
  background-color: var(--color1) !important;
  color: var(--bg-color1) !important;
}

/* ================================
   404 PAGE
================================ */

body.error404 {
  background: #f7f9fc;
}

.error-page {
  min-height: calc(100vh - 80px);
  padding: 140px 20px 96px;
}

.error-page__section {
  padding: 0;
}

.error-page__container {
  width: min(860px, 100%);
  margin: 0 auto;
}

.error-page__card {
  padding: 0;
  background: transparent;
}

.error-page__header {
  margin-bottom: 24px;
}

.error-page__title {
  max-width: 100%;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.2;
  color: var(--color1);
  word-break: keep-all;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}

.error-page__lead {
  max-width: 680px;
  font-size: 1rem;
  line-height: 1.8;
  color: #4b5563;
}

.error-page__content {
  display: grid;
  gap: 24px;
}

.error-page__guide {
  padding: 24px 28px;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  background: #fff;
}

.error-page__guide p {
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--color1);
}

.error-page__list {
  padding-left: 1.2em;
  color: #334155;
  line-height: 1.8;
}

.error-page__list li + li {
  margin-top: 8px;
}

.error-page__search {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.error-page__search-input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #cdd6e1;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: #0f172a;
}

.error-page__search-input:focus {
  outline: none;
  border-color: var(--color2);
  box-shadow: 0 0 0 3px rgba(40, 136, 204, 0.12);
}

.error-page__search-button {
  min-width: 150px;
  padding: 0 28px;
  border: none;
  border-radius: 12px;
  background: var(--color2);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.error-page__search-button:hover {
  background: var(--color1);
}

.error-page__actions {
  display: flex;
  justify-content: center;
}

.error-page__button {
  min-width: 220px;
  border-radius: 12px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media screen and (max-width: 768px) {
  .error-page {
    padding: 116px 16px 56px;
  }

  .error-page__card {
    padding: 0;
  }

  .error-page__guide {
    padding: 20px;
    border-radius: 14px;
  }

  .error-page__lead {
    font-size: 0.95rem;
  }

  .error-page__search {
    flex-direction: column;
  }

  .error-page__search-input,
  .error-page__search-button,
  .error-page__button {
    width: 100%;
    min-width: 0;
  }
}

/* ================================
   SEARCH PAGE
================================ */

.search-page {
  min-height: calc(100vh - 80px);
  padding: 140px 20px 96px;
  background: #f7f9fc;
}

.search-page__section {
  padding: 0;
}

.search-page__container {
  width: min(860px, 100%);
  margin: 0 auto;
}

.search-page__header {
  margin-bottom: 32px;
}

.search-page__eyebrow {
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.search-page__title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.2;
  color: var(--color1);
}

.search-page__results {
  display: grid;
  gap: 18px;
}

.search-page__item {
  padding: 24px 28px;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  background: #fff;
}

.search-page__item-head {
  margin-bottom: 12px;
}

.search-page__item-title {
  margin-bottom: 10px;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--color1);
}

.search-page__item-title a:hover {
  color: var(--color2);
}

.search-page__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.search-page__date {
  color: #6b7280;
  font-size: 0.92rem;
}

.search-page__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-page__category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf1f5;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
}

.search-page__summary {
  color: #334155;
  line-height: 1.9;
}

.search-page__summary p:last-child {
  margin-bottom: 0;
}

.search-page__pagination {
  margin-top: 32px;
}

.search-page__pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-page__pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  background: #fff;
  color: #334155;
}

.search-page__pagination .page-numbers.current {
  background: var(--color1);
  border-color: var(--color1);
  color: #fff;
}

.search-page__empty {
  padding: 32px 28px;
  border: 1px solid #d8e0ea;
  border-radius: 16px;
  background: #fff;
}

.search-page__empty-title {
  margin-bottom: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color1);
}

.search-page__empty-text {
  margin-bottom: 20px;
  color: #4b5563;
}

.search-page__form {
  display: flex;
  gap: 12px;
}

.search-page__input {
  flex: 1;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #cdd6e1;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
  color: #0f172a;
}

.search-page__input:focus {
  outline: none;
  border-color: var(--color2);
  box-shadow: 0 0 0 3px rgba(40, 136, 204, 0.12);
}

.search-page__submit {
  min-width: 140px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: var(--color2);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-page__submit:hover {
  background: var(--color1);
}

@media screen and (max-width: 768px) {
  .search-page {
    padding: 116px 16px 56px;
  }

  .search-page__item,
  .search-page__empty {
    padding: 20px;
  }

  .search-page__form {
    flex-direction: column;
  }

  .search-page__input,
  .search-page__submit {
    width: 100%;
  }
}
