/*
Theme Name: TOWA_Theme
Author: 東和美術印刷
Description: 東和美術印刷の公式サイト
Version: 0.1
*/ 


/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

/* ページ別背景色設定 */
body.index-page {
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 50%, #f0fffe 100%);
}

body.faq-page {
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 50%, #f0fffe 100%);
}

body.news-page {
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 50%, #f0fffe 100%);
}

body.services-page {
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 50%, #f0fffe 100%);
}

body.hp-page {
    background: linear-gradient(135deg, #f0fffe 0%, #ffffff 50%, #f0fffe 100%);
}

body.company-page {
    background: #ffffff;
}

body.privacy-page {
    background: #ffffff;
}

body.contact-page {
    background: #ffffff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffffcc;
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(0, 160, 133, 0.12);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    opacity: 0.8;
}

.brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(45deg, #00d4aa, #00a085);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
}

.brand-name {
    font-weight: 800;
    color: #004f43;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    color: #004f43;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: rgba(0, 212, 170, 0.1);
    color: #007965;
}

.nav-cta {
    background: linear-gradient(45deg, #00d4aa, #00b894);
    color: #fff !important;
    padding: 10px 14px !important;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 212, 170, 0.35);
    position: relative;
    overflow: hidden;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.6);
    background: linear-gradient(45deg, #00b894, #00a085) !important;
    color: #fff !important;
}

.nav-cta::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: ctaShine 2.8s ease-in-out infinite;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(0, 160, 133, 0.2);
    background: #fff;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #004f43;
    position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #004f43;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.page-hero {
    padding-top: 30px;
}

.home-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: center;
    gap: 28px;
}

.hero-left {
    text-align: center;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 6px;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #004f43;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 160, 133, 0.2);
}

.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.kpi {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.kpi strong {
    display: block;
    color: #00a085;
    font-size: 1.4rem;
    line-height: 1.2;
}

.kpi span {
    color: #5a6c7d;
    font-size: 0.9rem;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    align-items: center;
}

.logo-pill {
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
    border: 1px solid rgba(0, 160, 133, 0.15);
    color: #007965;
    font-weight: 700;
}

.page-section {
    padding: 60px 0;
}

.lead {
    font-size: 1.1rem;
    color: #5a6c7d;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヒーローセクション */
.hero {
    /* 背景画像の上にグラデーションを重ねて文字の可読性を担保します */
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.85) 0%, rgba(0, 121, 101, 0.85) 100%), url('image/fv.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    animation: heroPan 28s ease-in-out infinite alternate;
}

/* --- ヒーロー画像スライドショー --- */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* TOPページ用のヒーロー画像 - より具体的なセレクター */
body:not(.hp-page) .hero-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/towatop1-scaled.webp') !important;
}

body:not(.hp-page) .hero-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/towa2-scaled.webp') !important;
}

body:not(.hp-page) .hero-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/towaco-scaled.webp') !important;
}

body:not(.hp-page) .hero-slide:nth-child(4) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/seo-scaled.webp') !important;
}

body:not(.hp-page) .hero-slide:nth-child(5) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/towainnsatu-scaled.webp') !important;
}

/* HPページ用のヒーロー画像 - より具体的なセレクター */
body.hp-page .hero-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/hp_hero1.webp') !important;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

body.hp-page .hero-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/hp_hero2-scaled.webp') !important;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

body.hp-page .hero-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,79,67,0.7), rgba(0,121,101,0.7)), url('https://towabizyutsu.co.jp/wp-content/uploads/2025/10/hp_hero3-scaled.webp') !important;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* HPページ専用のアニメーション */
body.hp-page .option-card {
    transform: translateY(30px);
    opacity: 0;
    animation: cardFloatUp 0.8s ease forwards;
}

body.hp-page .option-card:nth-child(1) { animation-delay: 0.2s; }
body.hp-page .option-card:nth-child(2) { animation-delay: 0.4s; }
body.hp-page .option-card:nth-child(3) { animation-delay: 0.6s; }

body.hp-page .service-card {
    transform: translateY(30px);
    opacity: 0;
    animation: cardFloatUp 0.8s ease forwards;
}

body.hp-page .service-card:nth-child(1) { animation-delay: 0.3s; }
body.hp-page .service-card:nth-child(2) { animation-delay: 0.5s; }
body.hp-page .service-card:nth-child(3) { animation-delay: 0.7s; }

body.hp-page .target-card {
    transform: translateY(30px);
    opacity: 0;
    animation: cardFloatUp 0.8s ease forwards;
}

body.hp-page .target-card:nth-child(1) { animation-delay: 0.4s; }
body.hp-page .target-card:nth-child(2) { animation-delay: 0.6s; }

@keyframes cardFloatUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* HPページのセクションタイトルに特別なエフェクト */



/* 全ページ共通のアニメーション効果 */


/* カード要素のアニメーション */
body:not(.company-page):not(.privacy-page):not(.contact-page) .service-card,
body:not(.company-page):not(.privacy-page):not(.contact-page) .option-card,
body:not(.company-page):not(.privacy-page):not(.contact-page) .target-card,
body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large {
    transform: translateY(30px);
    opacity: 0;
    animation: cardFloatUp 0.8s ease forwards;
}

body:not(.company-page):not(.privacy-page):not(.contact-page) .service-card:nth-child(1),
body:not(.company-page):not(.privacy-page):not(.contact-page) .option-card:nth-child(1),
body:not(.company-page):not(.privacy-page):not(.contact-page) .target-card:nth-child(1),
body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large:nth-child(1) { 
    animation-delay: 0.2s; 
}

body:not(.company-page):not(.privacy-page):not(.contact-page) .service-card:nth-child(2),
body:not(.company-page):not(.privacy-page):not(.contact-page) .option-card:nth-child(2),
body:not(.company-page):not(.privacy-page):not(.contact-page) .target-card:nth-child(2),
body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large:nth-child(2) { 
    animation-delay: 0.4s; 
}

body:not(.company-page):not(.privacy-page):not(.contact-page) .service-card:nth-child(3),
body:not(.company-page):not(.privacy-page):not(.contact-page) .option-card:nth-child(3),
body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large:nth-child(3) { 
    animation-delay: 0.6s; 
}

body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large:nth-child(4) { 
    animation-delay: 0.8s; 
}

body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large:nth-child(5) { 
    animation-delay: 1.0s; 
}

/* 強化されたホバーエフェクト */
body:not(.company-page):not(.privacy-page):not(.contact-page) .service-card:hover,
body:not(.company-page):not(.privacy-page):not(.contact-page) .option-card:hover,
body:not(.company-page):not(.privacy-page):not(.contact-page) .target-card:hover,
body:not(.company-page):not(.privacy-page):not(.contact-page) .news-item-large:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ヒーローセクションのパララックス効果 */
body:not(.company-page):not(.privacy-page):not(.contact-page) .hero-slide {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* ページタイトルのアニメーション */
body:not(.company-page):not(.privacy-page):not(.contact-page) .page-title {
    transform: translateY(20px);
    opacity: 0;
    animation: titleSlideUp 0.8s ease forwards 0.2s;
}

body:not(.company-page):not(.privacy-page):not(.contact-page) .page-subtitle {
    transform: translateY(20px);
    opacity: 0;
    animation: titleSlideUp 0.8s ease forwards 0.4s;
}

@keyframes titleSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

/* ヒーロー演出用のやわらかなグロー層（動き） */
.hero::after {
    content: '';
    position: absolute;
    inset: -20% -10% -10% -10%;
    background:
        radial-gradient(600px 300px at 10% -10%, rgba(255,255,255,0.14), transparent 55%),
        radial-gradient(520px 280px at 110% 0%, rgba(255,255,255,0.12), transparent 55%),
        radial-gradient(520px 280px at 50% 120%, rgba(255,255,255,0.10), transparent 60%);
    mix-blend-mode: overlay;
    filter: blur(0.5px);
    animation: heroGlow 14s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
    50%  { transform: translate3d(0, -1.5%, 0) scale(1.02); opacity: 1; }
    100% { transform: translate3d(0, 1.2%, 0) scale(1.01); opacity: 0.95; }
}

@keyframes heroPan {
    0% { background-position: center; }
    100% { background-position: calc(50% + 20px) calc(50% - 20px); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards 0.1s;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    font-weight: 300;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeUp 0.8s ease forwards 0.24s;
}

.hero-subtitle strong {
    color: #00d4aa;
    font-weight: 700;
    font-size: 1.2rem;
}

.hero-cta {
    position: relative;
    z-index: 1;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 動きを苦手とする環境への配慮 */
@media (prefers-reduced-motion: reduce) {
    .hero::after { animation: none; }
    .hero { animation: none; }
    .hero-title,
    .hero-subtitle { animation: none; opacity: 1; transform: none; }
    .service-card,
    .option-card,
    .target-card,
    .benefit-item { animation: none; opacity: 1; transform: none; }
}

.cta-button {
    background: linear-gradient(45deg, #00d4aa, #00b894);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.6);
    background: linear-gradient(45deg, #00b894, #00a085);
}

.cta-button::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    animation: ctaShine 2.8s ease-in-out infinite;
}

@keyframes ctaShine {
    0% { left: -30%; }
    60% { left: 120%; }
    100% { left: 120%; }
}

.cta-button.large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.hero-note {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: #004f43;
    position: relative;
    font-weight: bold;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #00d4aa, #00a085);
    margin: 15px auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    animation: underlineSlide 1.6s ease both;
}

@keyframes underlineSlide {
    0% { width: 0; opacity: 0; }
    60% { width: 70px; opacity: 1; }
    100% { width: 60px; }
}

/* サービスセクション */
.services {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0fffe 0%, #e6f9f7 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.service-card {
    background: white;
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn 0.7s ease forwards;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.services-grid .service-card:nth-child(1) { animation-delay: 0.08s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.18s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.28s; }

@keyframes cardIn {
    to { opacity: 1; transform: translateY(0); }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #00d4aa, #00a085);
}

.service-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #00d4aa, #00a085);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #004f43;
    font-weight: bold;
}

.service-price {
    font-size: 1.2rem;
    color: #00a085;
    font-weight: bold;
    margin-bottom: 8px;
}

.service-note {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.service-description {
    line-height: 1.6;
    color: #5a6c7d;
    font-size: 0.95rem;
}

/* ターゲット顧客セクション */
.target-audience {
    padding: 60px 0;
    background: white;
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 45px;
}

.target-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid #00d4aa;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn 0.7s ease forwards;
}

.target-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.15);
}

.target-grid .target-card:nth-child(1) { animation-delay: 0.08s; }
.target-grid .target-card:nth-child(2) { animation-delay: 0.18s; }

.target-card h3 {
    font-size: 1.6rem;
    color: #004f43;
    margin-bottom: 20px;
    font-weight: bold;
}

.target-card ul {
    list-style: none;
}

.target-card li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    color: #5a6c7d;
    font-size: 0.95rem;
}

.target-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00d4aa;
    font-weight: bold;
    font-size: 1.1rem;
}

/* メリットセクション */
.benefits {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin: 30px auto;
    max-width: 1200px;
}

.benefits h3 {
    text-align: center;
    font-size: 1.8rem;
    color: #004f43;
    margin-bottom: 30px;
    font-weight: bold;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.benefit-item {
    text-align: center;
    padding: 25px 15px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e6f9f7 0%, #d1f5f0 100%);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn 0.7s ease forwards;
}

.benefit-item:hover {
    background: linear-gradient(135deg, #d1f5f0 0%, #b8f0e8 100%);
    transform: translateY(-3px);
    border: 2px solid #00d4aa;
}

.benefits-grid .benefit-item:nth-child(1) { animation-delay: 0.08s; }
.benefits-grid .benefit-item:nth-child(2) { animation-delay: 0.16s; }
.benefits-grid .benefit-item:nth-child(3) { animation-delay: 0.24s; }

.benefit-item h4 {
    font-size: 1.2rem;
    color: #00a085;
    margin-bottom: 12px;
    font-weight: bold;
}

.benefit-item p {
    line-height: 1.6;
    color: #5a6c7d;
    font-size: 0.9rem;
}

/* オプションセクション */
.options {
    padding: 60px 0;
    background: linear-gradient(135deg, #f0fffe 0%, #e6f9f7 100%);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
}

/* --- TOP: 営業項目（タイル） --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.work-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px 18px;
    border: 1px solid rgba(0,160,133,0.15);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.1);
}

.work-card h3 {
    color: #004f43;
    margin-bottom: 6px;
}

.work-card p { color: #5a6c7d; }

/* --- TOP: NEWS --- */
.tw_news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: baseline;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fffd 100%);
    border-radius: 10px;
    border: 1px solid rgba(0,160,133,0.12);
}

.news-date { color: #00a085; font-weight: 700; }
.news-text { color: #004f43; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.news-more-link {
    color: #00a085;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 8px 16px;
    border: 2px solid #00a085;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.news-more-link:hover {
    background: #00a085;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 160, 133, 0.3);
}

/* --- NEWS一覧ページ --- */
.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #004f43;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #5a6c7d;
    text-align: center;
    margin-bottom: 0;
}

.news-archive {
    max-width: 800px;
    margin: 0 auto;
}

.news-item-large {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,160,133,0.12);
    transition: all 0.3s ease;
}

.news-item-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.news-item-large .news-date {
    color: #00a085;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.news-category {
    display: inline-block;
    background: linear-gradient(45deg, #00d4aa, #00a085);
    color: #fff;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.news-title {
    font-size: 1.4rem;
    color: #004f43;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-link {
    color: #00a085;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.news-link:hover {
    color: #007965;
}

/* --- プライバシーポリシーページ --- */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-section {
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,160,133,0.12);
}

.privacy-section h2 {
    color: #004f43;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00d4aa;
}

.privacy-section p {
    color: #5a6c7d;
    margin-bottom: 15px;
}

.privacy-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.privacy-section li {
    color: #5a6c7d;
    margin-bottom: 8px;
}

.contact-info {
    background: #f8fffe;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #00d4aa;
    margin-top: 15px;
}

.contact-info p {
    margin-bottom: 8px;
    color: #004f43;
}

.contact-info strong {
    color: #00a085;
    font-size: 1.1rem;
}

.privacy-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,160,133,0.2);
}

.privacy-footer small {
    color: #7f8c8d;
}

/* --- お問い合わせフォーム --- */

/* --- お知らせページ --- */
.news-archive-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-archive-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 160, 133, 0.15);
    align-items: flex-start;
}

.news-archive-item:last-child {
    border-bottom: none;
}

.news-archive-date {
    color: #00a085;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    min-width: 100px;
}

.news-archive-content {
    flex: 1;
}

.news-archive-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.news-archive-title a {
    color: #004f43;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-archive-title a:hover {
    color: #00a085;
}

.news-archive-excerpt {
    color: #5a6c7d;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

.no-news {
    text-align: center;
    padding: 40px 20px;
    color: #5a6c7d;
}

@media (max-width: 768px) {
    .news-archive-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-archive-date {
        min-width: auto;
    }
}

/* シングルページ用スタイル */
.news-single {
    max-width: 800px;
    margin: 0 auto;
}

.news-single-meta {
    text-align: center;
    margin-bottom: 20px;
}

.news-single-date {
    color: #00a085;
    font-weight: bold;
    font-size: 1rem;
}

.news-single-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #004f43;
    line-height: 1.4;
}

.news-single-content {
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.news-single-content h2,
.news-single-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #004f43;
}

.news-single-content p {
    margin-bottom: 1.5em;
}

.news-single-nav {
    text-align: center;
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid rgba(0, 160, 133, 0.15);
}

@media (max-width: 768px) {
    .news-single-title {
        font-size: 1.5rem;
    }
}

.news-meta {
    margin-bottom: 15px;
    text-align: center;
}

.news-meta .news-date {
    color: #00a085;
    font-weight: bold;
    font-size: 1rem;
}

.news-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.news-content h2, .news-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #004f43;
}

.news-content p {
    margin-bottom: 1.5em;
}

.news-nav {
    margin-top: 3em;
    text-align: center;
}

.back-to-news {
    display: inline-block;
    color: #00a085;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #00a085;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-to-news:hover {
    background: #00a085;
    color: white;
}

.news-list .news-item .news-text a {
    color: #004f43;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-list .news-item .news-text a:hover {
    color: #00a085;
}

.pagination {
    margin-top: 3em;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination .nav-links a,
.pagination .nav-links .current {
    display: inline-block;
    padding: 8px 16px;
    border: 2px solid #00a085;
    color: #00a085;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .nav-links a:hover,
.pagination .nav-links .current {
    background: #00a085;
    color: white;
}
.form {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    padding: 24px;
}

/* HubSpotフォーム用のスタイル */
.hs-form-frame {
    width: 100%;
}

.hs-form .hs-form-field {
    margin-bottom: 20px;
}

.hs-form label {
    font-weight: 700;
    color: #004f43;
    margin-bottom: 8px;
    display: block;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form select,
.hs-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 160, 133, 0.25);
    border-radius: 10px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    font-family: inherit;
    font-size: 16px;
}

.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
    border-color: #00a085;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.15);
}

.hs-form textarea {
    min-height: 140px;
    resize: vertical;
}

.hs-form .hs-submit {
    text-align: center;
    margin-top: 20px;
}

.hs-form .hs-button {
    background: linear-gradient(45deg, #00d4aa, #00b894);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.hs-form .hs-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.6);
    background: linear-gradient(45deg, #00b894, #00a085);
}

/* --- TOP: ワイドCTA --- */
.wide-cta {
    background: linear-gradient(135deg, #004f43 0%, #007965 60%, #00a085 100%);
    color: #fff;
    padding: 36px 0;
    border-radius: 12px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    text-align: center;
}

.wide-cta h3 { font-size: 1.9rem; margin-bottom: 10px; }
.wide-cta p { opacity: .9; margin-bottom: 18px; }

/* --- 会社概要テーブル --- */
.company-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,160,133,0.15);
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th {
    background: linear-gradient(135deg, #004f43 0%, #00a085 100%);
    color: #fff;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 1.1rem;
    width: 200px;
}

.company-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,160,133,0.1);
    color: #004f43;
    vertical-align: top;
}

.company-table tr:last-child td {
    border-bottom: none;
}

.company-table .address-section {
    margin-bottom: 12px;
}

.company-table .address-section:last-child {
    margin-bottom: 0;
}

.company-table .address-title {
    font-weight: 700;
    color: #00a085;
    margin-bottom: 4px;
}

.company-table .address-detail {
    color: #5a6c7d;
    line-height: 1.5;
}

.company-table .partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.company-table .partner-item {
    background: rgba(0,160,133,0.08);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.company-table .service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.company-table .service-item {
    background: rgba(0,160,133,0.08);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.option-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(10px);
    animation: cardIn 0.7s ease forwards;
}

.option-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.25);
    border: 2px solid #00d4aa;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.option-card:hover .option-title {
    color: #004f43;
    transition: all 0.3s ease;
}

.options-grid .option-card:nth-child(1) { animation-delay: 0.08s; }
.options-grid .option-card:nth-child(2) { animation-delay: 0.18s; }
.options-grid .option-card:nth-child(3) { animation-delay: 0.28s; }

.option-card h3 {
    font-size: 1.4rem;
    color: #004f43;
    margin-bottom: 12px;
    font-weight: bold;
}

.option-price {
    font-size: 1.6rem;
    color: #00a085;
    font-weight: bold;
    margin-bottom: 15px;
}

.option-description {
    line-height: 1.6;
    color: #5a6c7d;
    font-size: 0.95rem;
}

.domain-info {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
    border-radius: 8px;
    border: 2px dashed #00d4aa;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.08);
}

.domain-note {
    font-size: 1.1rem;
    color: #004f43;
    margin: 0;
}

/* 担当者コメント */
.comment {
    background: linear-gradient(135deg, #ffffff 0%, #f0fffe 100%);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.15);
    border: 1px solid rgba(0,160,133,0.2);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: commentSlideUp 0.8s ease forwards 0.3s;
}

.comment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00d4aa, #00a085, #00d4aa);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

.comment::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.05) 0%, transparent 70%);
    animation: commentGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes commentSlideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes commentGlow {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.3; }
    50% { transform: rotate(180deg) scale(1.1); opacity: 0.6; }
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4aa, #00a085);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.25);
}

.comment-name {
    font-weight: 800;
    color: #004f43;
}

.comment-role {
    color: #00a085;
    font-weight: 700;
    font-size: 0.9rem;
}

.comment p { 
    color: #5a6c7d; 
    line-height: 1.8; 
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transform: translateX(-20px);
    opacity: 0;
    animation: textSlideIn 0.6s ease forwards;
}

.comment p:nth-child(1) { animation-delay: 0.5s; }
.comment p:nth-child(2) { animation-delay: 0.7s; }
.comment p:nth-child(3) { animation-delay: 0.9s; }
.comment p:nth-child(4) { animation-delay: 1.1s; }
.comment p:nth-child(5) { animation-delay: 1.3s; }
.comment p:nth-child(6) { animation-delay: 1.5s; }

.comment strong { 
    color: #007965; 
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.comment strong:hover {
    color: #00d4aa;
    transform: scale(1.05);
    text-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

@keyframes textSlideIn {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* CTAセクション */
.cta-section {
    background: linear-gradient(135deg, #004f43 0%, #007965 50%, #00a085 100%);
    color: white;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-top: 30px;
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.contact-info strong {
    color: #00d4aa;
    font-size: 1.2rem;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #004f43 0%, #003d37 100%);
    color: white;
    text-align: center;
    padding: 25px 0;
}

.footer p {
    opacity: 0.8;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .site-header .container { gap: 10px; }
    .menu-toggle { display: inline-flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #ffffff; padding: 12px 20px; border-bottom: 1px solid rgba(0, 160, 133, 0.12); box-shadow: 0 6px 16px rgba(0,0,0,0.06); }
    .main-nav.open { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .main-nav a { padding: 12px 8px; }
    .nav-cta { text-align: center; }
    
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .kpis {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .section-title {
        font-size: 1.9rem;
    }
    
    .services-grid,
    .target-grid,
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .target-card {
        min-width: auto;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card,
    .option-card,
    .target-card {
        padding: 25px 20px;
    }
    
    .benefits {
        padding: 30px 25px;
        margin: 20px 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .cta-button.large {
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .news-more-link {
        align-self: center;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 45px 0;
    }
    
    .hero-title {
        font-size: 1.4rem;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .hero-left {
        text-align: center;
    }
    
    .kpis {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 15px;
    }
    
    .kpi {
        padding: 12px;
    }
    
    .kpi strong {
        font-size: 1.2rem;
    }
    
    .kpi span {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .services,
    .target-audience,
    .options {
        padding: 45px 0;
    }
    
    .cta-section {
        padding: 45px 0;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card,
    .option-card,
    .target-card {
        padding: 20px 15px;
    }
    
    .benefits {
        padding: 25px 20px;
        margin: 15px 10px;
    }
    
    .benefits h3 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .benefit-item {
        padding: 20px 15px;
    }
    
    .benefit-item h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .benefit-item p {
        font-size: 0.85rem;
    }
    
    .badge {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .news-item-large {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .news-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

