/* ===============================================
   創建コーポレーション コーポレートサイト
   共通スタイルシート (ワイヤーフレーム用)
   =============================================== */

/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    margin-left: 280px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

/* レイアウト */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

/* ヘッダー */
.header {
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.header.visible {
    transform: translateX(0);
}

.header-inner {
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    width: 100%;
    height: 100%;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

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

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2563eb;
    text-align: center;
}

.logo img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2563eb;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 10px;
}

.nav-list-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.nav-list a {
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list a:hover {
    background-color: #f0f0f0;
}

/* メガメニュー */
.menu-wrap {
    position: fixed;
    left: 280px;
    top: 0;
    bottom: 0;
    width: 280px;
    pointer-events: none;
    z-index: 10000;
}

.megamenu {
    position: absolute;
    top: 0;
    left: 10px;
    width: calc(100% - 20px);
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: auto;
    padding: 15px 0;
    overflow-y: auto;
}

.megamenu.active {
    opacity: 1;
    visibility: visible;
}

.megamenu-list {
    list-style: none;
    padding: 10px 0;
}

.megamenu-list li {
    margin: 0;
}

.megamenu-list a {
    display: block;
    padding: 15px;
    color: #333;
    transition: background-color 0.3s;
    border-radius: 4px;
    margin: 5px 10px;
}

.megamenu-list a:hover {
    background-color: #f0f0f0;
}

.megamenu-image {
    width: 100%;
    height: 120px;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.megamenu-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.megamenu-text i {
    color: #2563eb;
    font-size: 16px;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    margin-left: -280px;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero .container {
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 32px;
    background-color: #2563eb;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1d4ed8;
    opacity: 1;
}

.btn-secondary {
    background-color: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-secondary:hover {
    background-color: #2563eb;
    color: #fff;
    opacity: 1;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2563eb;
}

.section-title p {
    font-size: 16px;
    color: #666;
}

/* カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #2563eb;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-header .card-icon {
    font-size: 32px;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header h3 {
    margin: 0 !important;
    padding: 0;
    line-height: 1.4;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2563eb;
}

.card-grid-2col .card h3 {
    margin-bottom: 0;
}

.card p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 2カラムレイアウト */
.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* 画像エリア */
.image-placeholder {
    background-color: #e5e7eb;
    padding: 100px 20px;
    text-align: center;
    color: #6b7280;
    border-radius: 8px;
}

/* ニュース・お知らせ */
.news-list {
    list-style: none;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.news-item {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 20px;
    transition: background-color 0.3s;
}

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

.news-item:hover {
    background-color: #f9fafb;
}

.news-date {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.news-category {
    display: inline-block;
    padding: 4px 12px;
    background-color: #dbeafe;
    color: #2563eb;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    color: #333;
}

/* CTA（Call to Action）セクション */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    margin-left: -280px;
    width: 100vw;
}

.cta-section h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* フッター */
.footer {
    background-color: #1e293b;
    color: #fff;
    padding: 60px 0 20px;
    margin-left: -280px;
    width: 100vw;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: 10px;
}

.footer-list a {
    color: #cbd5e1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 14px;
}

/* ワイヤーフレーム表示用 */
.wireframe-box {
    border: 2px dashed #ccc;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    background-color: #f9f9f9;
    color: #666;
}

/* スマホ専用改行 */
.sp-br {
    display: none;
}

@media (max-width: 768px) {
    .sp-br {
        display: block;
    }
}

/* レスポンシブ */
@media (max-width: 768px) {
    body {
        margin-left: 0;
    }

    .header {
        width: 100%;
        height: auto;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .header-inner {
        padding: 15px 20px;
        height: auto;
    }

    .header-top {
        margin-bottom: 0;
    }

    .logo {
        margin-bottom: 0;
        width: 150px;
    }

    .logo img {
        width: auto;
        max-height: 40px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #fff;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        padding: 20px;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        gap: 10px;
    }

    .nav-list-bottom {
        position: relative;
        margin-top: 20px;
    }

    /* スマホではメガメニューを非表示 */
    .menu-wrap {
        display: none;
    }

    .has-megamenu.active::after {
        content: '';
        display: block;
        margin-top: 10px;
    }

    .hero,
    .cta-section,
    .footer {
        margin-left: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .card-grid,
    .card-grid-2col {
        grid-template-columns: 1fr;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }
}

