/*
Theme Name: technicalwriter.jp
Description: technicalwriter.jp
Version: 1.0
Author: tt
*/
/* リセットスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ボックスサイズの設定 */
html {
    box-sizing: border-box;
    padding-top: 110px; /* ヘッダーの高さ分の余白を追加 */
}

/* フォントサイズのベース */
body {
    font-family: '游明朝', 'Yu Mincho', 'Hiragino Mincho ProN', 'MS PMincho', serif;
    line-height: 1.8;
    color: #444;
    background-color: #faf9f7;
    padding-top: 0; /* リセット */
}

/* コンテナの設定 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダーのスタイル */
header {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    min-height: 110px;
    border-bottom: 1px solid #e8e6e1;
    padding: 15px 0 0;
}

/* トップページの余白調整 */
#home {
    margin-top: -110px;
}

/* メインコンテンツの余白調整 */
main {
    position: relative;
    z-index: 1;
    background: #fff;
}

header .container {
    display: flex;
    flex-direction: row; /* row layout */
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative; /* ロゴの絶対配置の基準 */
}

.logo {
    position: relative;
    margin: 0;
    text-align: left;
    width: auto;
    display: flex;        /* 追加：縦方向中央揃え */
    align-items: center;  /* 追加 */
    height: 100%;         /* 追加：親（ヘッダー）の高さに合わせる */
}

.logo-container {
    display: block;       /* flex を解除して通常ブロックに */
}

.logo-image {
    width: auto;
    max-height: 80px;
    max-width: 300px;
    margin: 0;            /* もともとの margin-bottom / margin-left / margin-right を 0 に統一 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 14px;
    color: #2c3e50;
    font-family: '游明朝', 'Yu Mincho', serif;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 5px;
}

nav {
    margin-left: auto;
}

nav ul {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #00355c;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 15px;
    display: block;
}

nav a:hover {
    color: #00355c;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: #00355c;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none; /* PCでは非表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
	width:30px;
    display: block;
    height: 3px;
    background: #00355c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 回転アニメーション */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ナビメニュー 初期状態(PC) */
.nav-menu {
    display: inline-flex;
    list-style: none;
    gap: 30px;
}

/* モバイル表示 */
@media (max-width: 768px) {
    header .container {
        align-items: center;
        justify-content: space-between;
    }
    .menu-toggle {
        display: flex; /* 表示 */
        position: absolute;
        right: 20px;
        top: 20px;
        z-index: 1002;
    }
    .nav-menu {
        display: none; /* 非表示 */
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 10px;
        text-align: center;
    }
    .nav-menu.open {
        display: flex; /* 開いた状態 */
    }
}

/* ファーストビューのスタイル */
.hero {
    padding-top: 140px; /* 新しいヘッダー高さに合わせて調整 */
    /*background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-background.jpg');*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    padding: 180px 0 120px;
    position: relative;
    margin-top:110px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 透過グラデーションに変更 */
    /*background: linear-gradient(135deg, rgba(0,53,92,0.6), rgba(0,84,140,0.6));*/
    z-index: 0;
}

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

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

.hero .subheading {
    font-size: 20px;
    margin-bottom: 30px;
}

/* セクションの基本スタイル */
.section {
    padding: 100px 0;
    background-color: #fff;
}

.section:nth-child(even) {
    background-color: #f9f9f9;
}

.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 28px;
    color: #00355c;
}

.section h2::after {
    /* removed decorative underline */
}

/* サービス特徴（円形デザイン）のスタイル */
.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.circle-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.circle-feature {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.circle-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #00355c, #00548c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 40px;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
    transition: all 0.3s ease;
    border: 2px solid #00355c;
}

.circle-feature h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    line-height: 1.4;
}

.circle-feature p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* PC 幅では 3 カラム固定にする（gap 分を差し引いて計算）*/
@media (min-width: 992px) {
  .circle-feature{
    flex: 1 1 calc(33.333% - 30px);  /* 3列レイアウト */
    max-width: 350px;                 /* 適宜調整 */
  }
}

/* タブレット (?576px) では 2 カラム */
@media (min-width: 576px) and (max-width: 991.98px) {
  .circle-feature{
    flex: 1 1 calc(50% - 30px);
  }
}

/* スマホは 1 カラム（既定値の min-width が効くので特に指定不要）*/


.feature-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.benefit-box {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    border-left: 3px solid #00355c;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

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

.benefit-box h3 {
    color: #00355c;
    margin-bottom: 10px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-box h3 i {
    font-size: 1.3rem;
}

.benefit-box p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .circle-features {
        flex-direction: column;
        align-items: center;
    }
    
    .circle-feature {
        width: 100%;
        max-width: 350px;
    }
    
    .feature-benefits {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-box {
        width: 100%;
        max-width: 350px;
    }
}

/* 制作の流れのスタイル */
.flow-vertical {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 25px 30px;
    margin: 0 auto;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 700px;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.step-icon {
    background: #00355c;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content {
    text-align: left;
}

.step-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.step-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.flow-arrow {
    text-align: center;
    color: #00355c;
    font-size: 24px;
    padding: 10px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .step-icon {
        margin: 0 auto 15px;
    }
    
    .step-content {
        text-align: center;
    }
}

/* 実績・お客様の声のスタイル */
.achievements {
    text-align: center;
    margin-bottom: 40px;
}

.achievements p {
    display: inline-block;
    margin: 0 20px;
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.testimonial {
    background: #fff;
    padding: 30px;
    border-radius: 2px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.testimonial p {
    position: relative;
    padding: 20px 40px;
}

.testimonial p::before {
    content: "\201C"; /* open quote */
    position: absolute;
    left: 10px;
    top: -5px;
    font-size: 50px;
    line-height: 1;
    color: #00355c;
    opacity: 0.15;
}

.testimonial p::after {
    content: "\201D"; /* close quote */
    position: absolute;
    right: 10px;
    bottom: -15px;
    font-size: 50px;
    line-height: 1;
    color: #00355c;
    opacity: 0.15;
}

.testimonial-author {
    text-align: right;
    color: #666;
}

/* FAQのスタイル */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.faq-trigger {
    width: 100%;
    padding: 15px 40px 15px 15px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    position: relative;
}

.faq-trigger::after {
    content: '\f078'; /* FontAwesomeの下向き矢印 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-trigger::after {
    transform: translateY(-50%) rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    /*transition: max-height 0.3s ease;*/
    background: #fff;
    padding: 0;
	color:#fff;
}


.faq-item.active .faq-content {
    max-height: 300px;
    padding: 20px 25px;
	color:#444;
}

/* お問い合わせのスタイル */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* フォーム送信ボタン */
.contact-form .cta-button {
    display: block;
    margin: 20px auto 0;  /* 上に余白、左右自動で中央寄せ */
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* CTAボタンのスタイル */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #00355c, #00548c);
    color: #fff;
    padding: 14px 35px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid #00355c;
    font-family: '游明朝', 'Yu Mincho', serif;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover {
    background: linear-gradient(135deg, #00548c, #007bff);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(13, 71, 161, 0.3);
}

.cta-button:hover::before {
    left: 100%;
}

/* クラウドソーシングサービス */
.crowdworking-services {
    margin-top: 40px;
    text-align: center;
}

.crowdworking-services h3 {
    margin-bottom: 20px;
    color: #333;
}

.service-platforms {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-platform {
    text-align: center;
}

.service-logo {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 4px;
}

.service-logo:hover {
    transform: scale(1.05);
}

.platform-link {
    display: block;
    margin-top: 10px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.platform-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .service-platforms {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .service-logo {
        max-width: 150px;
    }
}

/* フッターのスタイル */
footer {
    background: #00355c;
    color: #fff;
    padding: 20px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0;
    padding: 0 20px;
}

.brand-name {
    font-size: 16px;
    font-weight: bold;
    white-space: nowrap;
    margin-right: 15px;
}

.address {
    display: inline;
    white-space: nowrap;
}

.social-links {
    margin-left: auto;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

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

/* テーブルスタイル */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

.standard-comparison {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    min-width: 600px;
}

.standard-comparison th,
.standard-comparison td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.standard-comparison th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.standard-comparison tr:hover {
    background-color: #f5f7fa;
}

.standard-comparison td:first-child {
    font-weight: 600;
    color: #1a365d;
    white-space: nowrap;
    width: 120px;
}

.tc {
	text-align:center;
}

.menseki {
	text-align:center;
	font-size:0.8em;
	margin-top:50px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .standard-comparison {
        font-size: 0.9em;
    }
    
    .standard-comparison th,
    .standard-comparison td {
        padding: 10px 8px;
    }
	#home {
   background-size: auto;
    background-position-y:1% 
        /*background-repeat:no-repeat;*/
	}
	.section {
		padding : 50px 0;
	}
}
