/* 基本設定 */
:root {
    --primary-color: #1a365d;
    --secondary-color: #3182ce;
    --text-color: #333333;
    --bg-light: #f7fafc;
    --bg-dark: #2d3748;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Arial, sans-serif; color: var(--text-color); line-height: 1.8; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }

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

/* ヘッダー */
.header { background-color: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: fixed; width: 100%; top: 0; z-index: 1000; }
.header-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.logo { font-size: 24px; color: var(--primary-color); font-weight: bold; }
.global-nav ul { display: flex; list-style: none; gap: 30px; align-items: center; }

/* HOME (メインビジュアル) と 背景ズームアニメーション */
.hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden;}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--primary-color);
    background-image: url('top.png'); 
    background-size: cover; background-position: center;
    z-index: -1;
    animation: bg-zoom 15s infinite alternate ease-in-out; /* ゆっくりズーム */
}
@keyframes bg-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}
.hero-content { position: relative; z-index: 1; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.hero h2 { font-size: 42px; margin-bottom: 25px; line-height: 1.5; letter-spacing: 2px; }

/* セクション共通 */
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 36px; color: var(--primary-color); margin-bottom: 5px; font-weight: bold; letter-spacing: 1px;}
.section-subtitle { text-align: center; font-size: 14px; color: #666; margin-bottom: 60px; }
.bg-light { background-color: var(--bg-light); }
.bg-dark { background-color: var(--bg-dark); color: var(--white); text-align: center; }

/* ABOUT (左右レイアウト) */
.profile-layout { display: flex; gap: 50px; align-items: center; }
.profile-text { flex: 1; }
.profile-text h3 { color: var(--primary-color); font-size: 24px; margin-bottom: 10px; }
.profile-image img { width: 300px; height: 300px; border-radius: 10px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }

/* BLOG */
.blog-layout { display: flex; gap: 40px; background: var(--bg-light); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.image-zoom-wrapper { flex: 1; overflow: hidden; } /* 画像が枠をはみ出さないようにする */
.zoom-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; min-height: 250px; background: #e2e8f0; }
.image-zoom-wrapper:hover .zoom-img { transform: scale(1.08); } /* マウスホバーで拡大 */
.blog-text { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.blog-text h3 { color: var(--primary-color); margin-bottom: 15px; }
.blog-text p { margin-bottom: 25px; }

/* ★追加：キャリア支援ポータルセクション用のデザイン */
.portal-section {
    padding: 100px 0;
    background-color: var(--white);
}
.portal-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}
.portal-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: bold;
    letter-spacing: 1px;
}
.portal-iframe {
    width: 100%;
    height: 850px; /* パソコン閲覧時に最も操作しやすい縦幅 */
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
}

/* ボタンのキラッと光るアニメーション */
.btn-contact, .btn-shine {
    display: inline-block; background-color: var(--secondary-color); color: var(--white) !important;
    padding: 12px 25px; border-radius: 30px; position: relative; overflow: hidden; transition: 0.3s; font-weight: bold;
}
.btn-shine-large {
    display: inline-block; background-color: #ed8936; color: var(--white); font-size: 18px;
    padding: 18px 40px; border-radius: 50px; position: relative; overflow: hidden; transition: 0.3s; font-weight: bold; box-shadow: 0 4px 15px rgba(237, 137, 54, 0.4);
}
.btn-contact:hover, .btn-shine:hover { background-color: var(--primary-color); transform: translateY(-3px); }
.btn-shine-large:hover { background-color: #dd6b20; transform: translateY(-5px); box-shadow: 0 8px 25px rgba(237, 137, 54, 0.6); }

/* キラッと光るエフェクト */
.btn-contact::before, .btn-shine::before, .btn-shine-large::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg); transition: 0.5s;
}
.btn-contact:hover::before, .btn-shine:hover::before, .btn-shine-large:hover::before { left: 150%; }

/* フッター */
.footer { background-color: #1a202c; color: #a0aec0; text-align: center; padding: 30px 0; font-size: 14px; }

/* --- スクロールアニメーション各種 --- */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in-left { opacity: 0; transform: translateX(-50px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in-right { opacity: 0; transform: translateX(50px); transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-visible { opacity: 1; transform: translate(0, 0); }

/* スマホ対応 */
@media (max-width: 768px) {
    .global-nav ul { display: none; }
    .hero h2 { font-size: 28px; }
    .profile-layout, .blog-layout { flex-direction: column; }
    .profile-image img { width: 100%; height: auto; }
    
    /* ★追加：スマホ表示時にポータルのレイアウトを最適化 */
    .portal-section { padding: 60px 0; }
    .portal-title { font-size: 28px; margin-bottom: 25px; }
    .portal-iframe { height: 700px; } /* スマホの画面比率に合わせて縦幅を少しコンパクトに */
}

/* サブページのトップ用デザイン */
.page-header {
    padding-top: 120px;
    padding-bottom: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}
.page-header h2 {
    font-size: 36px;
    letter-spacing: 2px;
}