/*
Theme Name: UN-SELFFISH THEME
Author: あなたの名前
Description: 株式会社アンセルフィッシュの公式サイト用オリジナルテーマです。
Version: 1.0
*/

/* Google Fontsのインポート */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Noto+Serif+JP:wght@400;700&display=swap');

/* =================================================================
   基本スタイル
================================================================= */
body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =================================================================
   ヘッダー & フッター
================================================================= */
.site-header {
    background-color: #001f3f; /* メインカラー: 紺 */
    padding: 15px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

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

.logo a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
}

.global-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}

.global-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: #cccccc; /* アクセントカラー: シルバー */
}

.site-footer {
    background-color: #001f3f;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}


/* =================================================================
   トップページ：各セクションのスタイル
================================================================= */
/* 共通セクションスタイル */
.content-section {
    padding: 80px 0;
    text-align: center;
}

.content-section h2 {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    color: #001f3f;
    margin-top: 0;
    margin-bottom: 40px;
}

.section-text {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* メインビジュアル */
.hero {
    background-color: #333;
    background-image: url('images/hero-image.jpg'); /* 注意: 'images'フォルダにhero-image.jpgを追加してください */
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 140px 24px;
}

.hero h1 {
    font-family: 'Noto Serif JP', serif;
    font-size: 42px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* 経営理念 */
#philosophy {
    background-color: #f7f7f7;
}

.philosophy-subtitle {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5em;
    margin-bottom: 2em;
    color: #001f3f;
    line-height: 1.6;
}

#philosophy .section-text p {
    font-size: 1.1em;
}

/* --- 経歴セクション --- */
.career-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    text-align: left;
    margin-top: 50px;
}

.career-photo {
    flex-basis: 200px;
    flex-shrink: 0;
}

.career-photo img {
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 3px solid #001f3f;
}

.career-timeline {
    flex: 1;
    padding-left: 30px; /* 文字全体をさらに右にずらす */
}

.career-item {
    display: flex;
    align-items: baseline;
    padding: 18px 0;
    position: relative; /* 区切り線の基準位置にする */
}

/* 区切り線を疑似要素で作成 */
.career-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%; /* 幅を90%に短くする */
    height: 1px;
    background-color: #e0e0e0;
}

.career-item p {
    margin-top: 0;
    margin-bottom: 0;
}

/* 最後の項目の区切り線は非表示にする */
.career-item:last-child::after {
    display: none;
}

.career-date {
    flex-basis: 120px;
    font-weight: bold;
    color: #001f3f;
    padding-right: 20px;
}

.career-desc {
    margin: 0;
    flex: 1;
}

/* 事業内容 */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}
.service-card {
    border: 1px solid #ddd;
    padding: 30px;
    background-color: #fff;
}
.service-card h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    color: #001f3f;
    margin-top: 0;
}

/* お客様の声 */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.testimonial-card {
    background-color: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
}
.testimonial-meta {
    font-weight: bold;
    color: #001f3f;
    border-bottom: 2px solid #eaf4ff;
    padding-bottom: 10px;
    margin-top: 0;
}

/* =================================================================
   固定ページテンプレートのスタイル
================================================================= */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    text-align: center;
}

.page-header {
    border-bottom: 2px solid #001f3f;
    margin-bottom: 40px;
    padding-bottom: 20px;
    text-align: center;
}

.page-header h1 {
    font-family: 'Noto Serif JP', serif;
    color: #001f3f;
    margin: 0;
}

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

.page-content img {
    max-width: 100%;
    width: 600px;
    height: auto;
    display: block;
    margin: 20px auto;
}

/* --- 航空券案内ページ専用 --- */
.ticket-offer-box, .notes-box {
    margin: 40px auto;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: left;
}
.ticket-offer-box {
    background-color: #eaf4ff;
    border: 2px solid #001f3f;
}
.notes-box {
    background-color: #fff8e1;
    border-left: 5px solid #ffc107;
}
.ticket-offer-box h3, .content-section-ticket h3 {
    text-align: center;
}
.ticket-offer-box .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #d9534f;
}
.ticket-offer-box ul {
    list-style: none;
    padding: 0;
}
.ticket-offer-box li {
    font-size: 1.1em;
    margin-bottom: 15px;
}
.content-section-ticket {
    margin-top: 60px;
    text-align: left;
}
.flow-list {
    counter-reset: flow-counter;
    list-style: none;
    padding: 0;
}
.flow-list li {
    counter-increment: flow-counter;
    margin-bottom: 20px;
    padding-left: 45px;
    position: relative;
}
.flow-list li::before {
    content: counter(flow-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: #001f3f;
    color: #fff;
    border-radius: 50%;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notes-box h3 {
    color: #c09853;
}
.page-content .line-button {
    display: table;
    margin: 0 auto;
}


/* =================================================================
   汎用コンポーネント（ボタンなど）
================================================================= */
.btn {
    display: inline-block;
    background-color: #cccccc;
    color: #001f3f;
    padding: 12px 32px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s, color 0.3s;
}
.btn:hover {
    background-color: #001f3f;
    color: #fff;
}

.line-button {
    display: inline-block;
    background-color: #00B900;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}
.line-button:hover {
    opacity: 0.8;
}

/* =================================================================
   プラグイン関連のスタイル
================================================================= */
/* --- Contact Form 7 --- */
.page-container .wpcf7 {
    max-width: 700px;
    margin: 0 auto;
}
.wpcf7-form p {
    text-align: left;
}
.wpcf7-form fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 5px;
}
.wpcf7-form input[type="submit"] {
    display: inline-block;
    background-color: #001f3f;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 12px 40px;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}
.wpcf7-form input[type="submit"]:hover {
    opacity: 0.8;
}

/* =================================================================
   レスポンシブ対応
================================================================= */
/* 画面幅が768px以下の場合に適用 */
@media (max-width: 768px) {

    .container {
        padding: 0 15px;
    }
    
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 32px;
    }
    
    .content-section {
        padding: 60px 0;
    }

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

    /* 各セクションを縦並び（1列）に変更 */
    .service-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .career-layout {
        flex-direction: column;
    }
    .career-photo {
        max-width: 180px;
        margin-bottom: 30px;
    }
}
