/*
Theme Name: IT Translation Partner Theme
Theme URI: 
Author: Your Name
Description: IT Translation Partner用のオリジナルテーマです。
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: it-translation-theme
*/

/* =========================================
   IT Translation Partner 共通スタイル
   ========================================= */
:root {
    --primary-color: #1c2a39;
    --accent-color: #c85127;
    --text-color: #3e3a39;
    --text-light: #707070;
    --bg-light: #f5f4f0;
    --bg-white: #ffffff;
    --section-padding: 100px 0;
    --container-width: 1000px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 2.0;
    background-color: var(--bg-white);
}

h1, h2, h3, h4, h5 { font-family: 'Noto Serif JP', serif; color: var(--primary-color); font-weight: 500; letter-spacing: 0.1em; }
p { font-weight: 300; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }
.custom-container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* メインコンテンツの余白調整（固定ヘッダーのため） */
main { padding-top: 80px; min-height: 100vh; }
main#home { padding-top: 0; } /* トップページはヒーローセクションで調整 */

/* ボタン */
.btn { display: inline-block; background-color: var(--accent-color); color: #fff; padding: 16px 48px; border-radius: 2px; font-family: 'Noto Serif JP', serif; font-weight: 500; letter-spacing: 0.1em; text-align: center; transition: all 0.3s ease; border: 1px solid var(--accent-color); cursor: pointer; text-decoration: none;}
.btn:hover { background-color: transparent; color: var(--accent-color); }
.btn-outline { background-color: transparent; color: var(--bg-white); border: 1px solid var(--bg-white); }
.btn-outline:hover { background-color: var(--bg-white); color: var(--primary-color); }

/* セクションタイトル */
.page-header { padding: 120px 0 80px; background-color: var(--primary-color); color: #fff; text-align: center; }
.page-header h1 { color: #fff; font-size: 36px; margin-bottom: 15px; }
.page-header p { color: rgba(255,255,255,0.7); font-family: 'Noto Serif JP', serif; letter-spacing: 0.2em; font-size: 14px; margin: 0;}

.section-title { text-align: center; margin-bottom: 80px; position: relative; }
.section-title h2 { font-size: 32px; margin-bottom: 15px; position: relative; display: inline-block; z-index: 1; }
.section-title .en { display: block; color: var(--bg-light); font-family: 'Noto Serif JP', serif; font-size: 60px; font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; position: absolute; top: -30px; left: 50%; transform: translateX(-50%); z-index: 0; opacity: 0.6; }
.section-title p { color: var(--text-light); font-family: 'Noto Serif JP', serif; position: relative; z-index: 1; margin-top: 10px; }

/* =========================================
   ヘッダー・フッター用スタイル
   ========================================= */
header { background-color: rgba(255, 255, 255, 0.95); border-bottom: 1px solid #eaeaea; position: fixed; width: 100%; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo { font-size: 20px; font-weight: 500; color: var(--primary-color); font-family: 'Noto Serif JP', serif; letter-spacing: 0.1em; }
.logo span { color: var(--accent-color); }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0;}
.nav-links a { font-weight: 400; font-size: 14px; font-family: 'Noto Serif JP', serif; letter-spacing: 0.1em; color: var(--text-color);}
.nav-links a:hover, .nav-links a.current { color: var(--accent-color); }

footer { background-color: var(--primary-color); color: #fff; padding: 80px 0 40px; text-align: center; margin-top: 100px; }
.footer-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 40px; }
.footer-links a { color: #aaa; font-size: 13px; font-family: 'Noto Serif JP', serif; }

/* =========================================
   メインビジュアル（画像配置型・横書き）用スタイル
   ========================================= */
.hero-image-section { width: 100%; padding-top: 80px; position: relative; }
.hero-image-container { position: relative; width: 100%; height: 80vh; min-height: 600px; overflow: hidden; }
.main-visual-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-text-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(28, 42, 57, 0.6), rgba(28, 42, 57, 0.7));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 40px; padding: 0 20px; box-sizing: border-box; text-align: center;
}
.hero-main-title { color: #fff; font-family: 'Noto Serif JP', serif; font-size: clamp(32px, 5vw, 56px); line-height: 1.6; letter-spacing: 0.1em; font-weight: 500; margin: 0; }
.hero-main-title span { color: var(--accent-color); }
.hero-sub-text { color: #fff; max-width: 700px; }
.hero-sub-text p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; font-weight: 300; letter-spacing: 0.1em; line-height: 2.0; }
.hero-buttons { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* =========================================
   各ページコンテンツ用スタイル
   ========================================= */
.service-preview-row { display: flex; align-items: center; gap: 60px; margin-bottom: 60px; }
.service-preview-row:nth-child(even) { flex-direction: row-reverse; }
.sp-img { flex: 1; position: relative; }
.sp-img::after { content: ''; position: absolute; bottom: -15px; right: -15px; width: 100%; height: 100%; border: 1px solid var(--primary-color); z-index: -1; }
.sp-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sp-text { flex: 1; }
.sp-text h3 { font-size: 22px; margin-bottom: 15px; border-bottom: 1px solid #eaeaea; padding-bottom: 10px; }

.philosophy-box { background: var(--bg-light); padding: 80px 60px; text-align: center; border: 1px solid #e0e0e0; margin-bottom: 80px; }
.philosophy-quote { font-size: 28px; color: var(--primary-color); line-height: 2.0; margin: 30px 0; font-family: 'Noto Serif JP', serif; }
.guidelines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; text-align: left; }
.g-item { padding: 30px; background: var(--bg-white); border-top: 2px solid var(--accent-color); }
.profile-wrap { display: flex; gap: 60px; align-items: center; background: #fff; padding: 60px; border: 1px solid #eaeaea; margin-bottom: 80px; }
.profile-img { width: 250px; aspect-ratio: 3/4; object-fit: cover; filter: grayscale(20%); }
.company-table { width: 100%; border-collapse: collapse; margin-top: 40px; }
.company-table th, .company-table td { padding: 20px; border-bottom: 1px solid #eaeaea; text-align: left; }
.company-table th { width: 25%; font-weight: 500; color: var(--primary-color); }

.service-detail-block { margin-bottom: 100px; }
.sd-header { display: flex; gap: 40px; margin-bottom: 40px; align-items: center; }
.sd-title { flex: 1; }
.sd-title h3 { font-size: 28px; color: var(--accent-color); margin-bottom: 10px; }
.sd-title h4 { font-size: 20px; margin-bottom: 20px; }
.sd-img { flex: 1; }
.sd-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sd-content { background: var(--bg-light); padding: 40px; border: 1px solid #eaeaea; }
.sd-list { margin-top: 20px; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-left: 0; }
.sd-list li::before { content: '■'; color: var(--accent-color); margin-right: 10px; font-size: 12px; }

.sns-hero { text-align: center; padding: 60px 0; border-bottom: 1px solid #eaeaea; margin-bottom: 60px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 80px; }
.f-card { text-align: center; padding: 40px 20px; border: 1px solid #eaeaea; background: #fff; }
.f-card i { font-size: 40px; color: var(--accent-color); margin-bottom: 20px; }
.plan-box { background: var(--primary-color); color: #fff; padding: 60px; text-align: center; margin-top: 40px; }
.plan-box h3 { color: var(--accent-color); font-size: 24px; margin-bottom: 30px; }
.plan-list { text-align: left; max-width: 600px; margin: 0 auto; list-style: none; font-size: 18px; padding-left: 0;}
.plan-list li { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }

.seminar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.seminar-card { background: #fff; border: 1px solid #eaeaea; transition: 0.3s; }
.seminar-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-5px); }
.sem-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.sem-body { padding: 30px; }
.sem-date { color: var(--accent-color); font-family: 'Noto Serif JP', serif; font-size: 14px; margin-bottom: 10px; display: block; }
.sem-title { font-size: 18px; margin-bottom: 15px; font-weight: 500; line-height: 1.5; }

.form-container { max-width: 700px; margin: 0 auto; background: #fff; padding: 60px; border: 1px solid #eaeaea; }
.form-group { margin-bottom: 30px; text-align: left;}
.form-group label { display: block; margin-bottom: 10px; font-weight: 500; font-family: 'Noto Serif JP', serif; }
.form-group label span { color: #fff; background: var(--accent-color); font-size: 11px; padding: 2px 8px; border-radius: 2px; margin-left: 10px; vertical-align: middle; }
.form-control { width: 100%; padding: 15px; border: 1px solid #ccc; font-family: inherit; font-size: 16px; background: var(--bg-light); transition: 0.3s; box-sizing: border-box;}
.form-control:focus { outline: none; border-color: var(--primary-color); background: #fff; }
textarea.form-control { resize: vertical; min-height: 150px; }

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-text-overlay { gap: 30px; padding: 0 15px; }
    .hero-main-title { font-size: clamp(24px, 6vw, 36px); line-height: 1.5; }
    .hero-sub-text p { font-size: 15px; margin-bottom: 30px; }
    .service-preview-row, .service-preview-row:nth-child(even), .profile-wrap, .sd-header { flex-direction: column; }
    .sp-img, .sd-img { order: -1; margin-bottom: 20px; }
    .guidelines, .feature-grid, .seminar-grid, .sd-list { grid-template-columns: 1fr; }
    .profile-wrap { padding: 40px 20px; }
    .profile-img { width: 100%; max-width: 300px; margin: 0 auto; }
    .company-table th, .company-table td { display: block; width: 100%; }
    .company-table th { border-bottom: none; padding-bottom: 5px; }
}
/* =========================================
   新着情報（News）用スタイル
   ========================================= */
.news-section { background-color: var(--bg-white); padding: 80px 0; }
.news-list { border-top: 1px solid #eaeaea; }
.news-item { display: flex; align-items: center; padding: 20px 0; border-bottom: 1px solid #eaeaea; transition: 0.3s; }
.news-item:hover { background-color: var(--bg-light); }
.news-meta { display: flex; align-items: center; }
.news-date { font-family: 'Noto Serif JP', serif; color: var(--text-light); font-size: 14px; width: 120px; flex-shrink: 0; }
.news-cat { background-color: var(--primary-color); color: #fff; font-size: 11px; padding: 4px 12px; margin-right: 20px; border-radius: 2px; text-align: center; min-width: 80px;}
.news-title { font-size: 16px; font-weight: 400; flex-grow: 1; }

/* 記事詳細ページ・一覧ページ用 */
.page-content-wrapper { padding: 80px 0; min-height: 50vh; }
.single-post-title { font-size: 32px; margin-bottom: 20px; border-bottom: 2px solid var(--accent-color); padding-bottom: 15px; }
.single-post-meta { display: flex; gap: 20px; margin-bottom: 40px; color: var(--text-light); font-family: 'Noto Serif JP', serif; }
.single-post-content { line-height: 2.0; font-size: 16px; }
.single-post-content h2 { margin: 40px 0 20px; font-size: 24px; border-left: 4px solid var(--accent-color); padding-left: 15px; }
.single-post-content img { max-width: 100%; height: auto; margin: 20px 0; }

@media (max-width: 768px) {
    .news-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px 0; }
    .news-title { font-size: 15px; line-height: 1.6; }
}