/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

a {
    color: #007bff;
    text-decoration: none;
}

/* ヘッダー */
header {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
}

header p {
    margin: 5px 0 0;
    color: #777;
    font-size: 1.1em;
}

/* メインコンテンツ */
main {
    padding: 40px 20px;
}

/* カードコンテナ */
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* カード */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card h2 {
    margin-top: 0;
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

.card p {
    flex-grow: 1; /* p要素が余白を埋めるようにする */
    margin-bottom: 20px;
    color: #555;
}

/* ボタン */
.button {
    display: inline-block;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* ボタンをカードの下部に配置 */
}

.button:hover {
    background-color: #0056b3;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .card {
        max-width: 100%;
    }
}

/* ===============================================
 * 新しいヘッダーとナビゲーション
 * =============================================== */
.site-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.header-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

/* ハンバーガーボタン */
.hamburger-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100; /* メニューより手前に */
}

.hamburger-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ハンバーガーボタンがアクティブな時のスタイル (X印) */
.hamburger-button.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.hamburger-button.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger-button.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* グローバルナビゲーション */
.global-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 99;
}

.global-nav.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.global-nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
}

.global-nav li a {
    display: block;
    padding: 12px 30px;
    color: #333;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.global-nav li a:hover {
    background-color: #f4f7f6;
}

/* 古いヘッダースタイルを上書き/調整 */
header {
    padding: 0; /* site-headerでパディングを管理 */
    text-align: left;
    border-bottom: none; /* site-headerで管理 */
}
header h1,
header p {
    display: none; /* 新しいロゴに置き換えたので非表示に */
}

/* ===============================================
 * 下層ページの基本レイアウト
 * =============================================== */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.page-container h1 {
    font-size: 2em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ===============================================
 * プライバシーポリシーページ
 * =============================================== */
.policy-summary {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.policy-summary h2 {
    margin-top: 0;
    font-size: 1.4em;
    border-bottom: none;
}

.policy-summary ul {
    padding-left: 20px;
    margin: 0;
}

.policy-summary li {
    margin-bottom: 15px;
}

.accordion-toggle {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #6c757d;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    margin-bottom: 20px;
}

.accordion-toggle:hover {
    background-color: #5a6268;
}

.accordion-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
}

/* ===============================================
 * プロフィールページ
 * =============================================== */
.profile-section {
    margin-bottom: 40px;
}

.profile-section h2 {
    font-size: 1.6em;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    margin-bottom: 12px;
    font-size: 1.05em;
}

.skill-list strong {
    display: inline-block;
    width: 120px;
    font-weight: 700;
}

.profile-page .button {
    margin-top: 10px;
    background-color: #28a745; /* ボタンの色を少し変える */
}

.profile-page .button:hover {
    background-color: #218838;
}


/* ===============================================
 * お問い合わせフォーム
 * =============================================== */
.contact-form {
    margin-top: 30px;
}

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

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Noto Sans JP', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

.radio-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
}

.privacy-notice {
    font-size: 0.9em;
    color: #555;
    text-align: center;
    margin-bottom: 20px;
}

.contact-form button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #0056b3;
}

/* 送信結果メッセージ */
.form-result {
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.form-result.success {
    background-color: #eaf7f0;
    border: 1px solid #a3d9b8;
    color: #1e6a3d;
}

.form-result.error {
    background-color: #fbe9e9;
    border: 1px solid #f0b6b6;
    color: #a92323;
}