/* --------------------------------
 * 基本設定・リセット
 * -------------------------------- */
body, h1, h2, h3, p, ul, li, table, th, td, form, input, textarea, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica Neue', 'Arial', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Meiryo', sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f9f9f9;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: #005A9C;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* スキップリンク (Accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: -999;
}
.skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    width: auto;
    height: auto;
    padding: 10px 15px;
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10000;
    text-decoration: none;
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #007BFF;
}


/* --------------------------------
 * ヘッダー
 * -------------------------------- */
header {
    background-color: #ffffff;
    padding: 20px 0;
    border-bottom: 2px solid #005A9C;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: #333;
    text-decoration: none;
    display: block;
}

.logo img {
    height: 35px;
    width: auto;
}

.global-nav ul {
    display: flex;
    list-style: none;
}

.global-nav li {
    margin-left: 30px;
}

.global-nav a {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    padding: 10px 0;
}

.global-nav a:hover {
    color: #005A9C;
    opacity: 1;
}

/* ハンバーガーメニュー (モバイル用) */
.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

/* --------------------------------
 * ヒーローセクション (トップページ)
 * -------------------------------- */
.hero {
    padding: 100px 0;
    text-align: center;
    background: #ffffff;
    color: #333;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background-image: url(ono_logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.2; /* 透かしの濃さを 20% に調整 */
    z-index: 1;
    filter: none;
}

.hero-title {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #005A9C;
}
.hero-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
}
.hero-cta {
    display: inline-block;
    padding: 15px 35px;
    background-color: #007BFF;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}
.hero-cta:hover {
    background-color: #005A9C;
    color: #fff;
    transform: translateY(-3px);
    opacity: 1;
}

/* --------------------------------
 * メインコンテンツ
 * -------------------------------- */
main {
    padding-top: 0;
    padding-bottom: 60px;
    flex-grow: 1;
}
main:not(.top-main) {
    padding-top: 60px;
}

.page-title {
    font-size: 32px;
    color: #005A9C;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 40px;
    text-align: center;
}

/* 各セクション */
.section {
    background-color: #fff;
    padding: 40px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.top-main .section {
    margin-top: 40px;
}

.section-title {
    font-size: 24px;
    color: #005A9C;
    border-left: 5px solid #007BFF;
    padding-left: 15px;
    margin-bottom: 25px;
}

.section p, .section ul {
    margin-bottom: 20px;
}

.section ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* 会社概要テーブル */
.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.company-table th, .company-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    vertical-align: top;
    transition: background-color 0.2s ease;
}
.company-table th {
    background-color: #f4f8fb;
    width: 30%;
    font-weight: bold;
}
.company-table tbody tr:hover td {
    background-color: #f9fcff;
}
.company-table tbody tr:hover th {
    background-color: #e9f2f9;
}


/* トップページ用CTAボタン */
.cta-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #007BFF;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}
.cta-button:hover {
    background-color: #005A9C;
    color: #fff;
    opacity: 1;
}

/* --------------------------------
 * お問い合わせフォーム (Contact)
 * -------------------------------- */
.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.form-group label .required {
    color: #d9534f;
    font-size: 12px;
    margin-left: 5px;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
textarea.form-control {
    height: 150px;
    resize: vertical;
}

.form-control:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}
.submit-btn:hover {
    background-color: #005A9C;
}
.submit-btn:focus-visible {
    outline: 2px solid #005A9C;
    outline-offset: 2px;
}

.honeypot {
    position: absolute;
    left: -5000px;
    opacity: 0;
}

/* フォーム送信完了メッセージ */
.form-success-message {
    display: none;
    padding: 30px;
    border: 1px solid #c3e6cb;
    background-color: #d4edda;
    color: #155724;
    border-radius: 4px;
    text-align: center;
    margin-top: 20px;
}
.form-success-message h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

/* 同意チェックボックス */
.form-privacy-consent {
    text-align: center;
    font-size: 14px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.form-privacy-consent label {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    font-weight: normal;
}
.form-privacy-consent input[type="checkbox"] {
    cursor: pointer;
    vertical-align: middle;
    margin-right: 5px;
    accent-color: #007BFF;
}
.form-privacy-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid #007BFF;
    outline-offset: 2px;
}
.form-privacy-consent a {
    text-decoration: underline;
}
.form-privacy-consent a:hover {
    opacity: 1;
    color: #007BFF;
}

/* ★チェックボックスの「必須」マーク用スタイルを追加★ */
.form-privacy-consent label .required {
    color: #d9534f;
    font-size: 12px;
    margin-left: 5px;
}

/* --------------------------------
 * フッター
 * -------------------------------- */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-logo {
    text-align: center;
    margin-bottom: 30px;
}
.footer-logo img {
    height: 40px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 20px;
    flex-wrap: wrap; 
}
.footer-nav li {
    margin: 5px 15px;
}
.footer-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}
.copyright {
    text-align: center;
    font-size: 12px;
    color: #aaa;
}

/* --------------------------------
 * ポリシーページ等
 * -------------------------------- */
.signature-block {
    text-align: right;
    margin-top: 40px;
    line-height: 1.8;
}
.safety-measures-list {
    list-style-type: '・';
    padding-left: 25px;
}
.safety-measures-list li {
    padding-left: 5px;
    margin-bottom: 10px;
}
.insurance-company-list {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}
.insurance-company-list li {
    margin-bottom: 10px;
    font-weight: bold;
}
.insurance-company-list a {
    text-decoration: underline;
}

/* --------------------------------
 * アニメーション
 * -------------------------------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------
 * スクロールトップボタン (reCAPTCHA重複回避)
 * -------------------------------- */
.scroll-top-btn {
    position: fixed;
    bottom: 90px; 
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 123, 255, 0.8);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.scroll-top-btn:hover {
    background-color: #005A9C;
    opacity: 1;
}

.scroll-top-btn::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(45deg) translateY(2px);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* --------------------------------
 * レスポンシブデザイン (モバイル)
 * -------------------------------- */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }
    .logo img {
        height: 30px;
    }

    .hamburger-menu {
        display: block;
    }
    .global-nav {
        display: none;
        position: absolute;
        top: 73px;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .global-nav.is-active {
        display: block;
    }
    .global-nav ul {
        flex-direction: column;
    }
    .global-nav li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    .global-nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        font-size: 16px;
    }
    .hamburger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ヒーロー (モバイル) */
    .hero {
        padding: 60px 0;
    }
    .hero::before {
        width: 200px;
        height: 200px;
    }
    .hero-title {
        font-size: 28px;
        line-height: 1.4;
    }
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.7;
    }

    /* メイン (モバイル) */
    main, main:not(.top-main) {
        padding-top: 0;
        padding-bottom: 30px;
    }
    .top-main .section {
        margin-top: 30px;
    }
    main:not(.top-main) .container > .page-title {
        margin-top: 30px; 
    }
    main:not(.top-main) .container > .section:first-of-type {
        margin-top: 30px;
    }


    .page-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    .section {
        padding: 20px;
    }
    .section-title {
        font-size: 20px;
    }

    /* 会社概要テーブル (モバイル) */
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    .company-table th {
        background-color: transparent;
        border-bottom: none;
        padding-top: 15px;
    }
    .company-table td {
        border-top: none;
        padding-bottom: 15px;
    }
    .company-table tr {
        border-bottom: 1px solid #ddd;
    }
    .company-table tbody tr:hover td,
    .company-table tbody tr:hover th {
        background-color: transparent; /* モバイルではホバー効果を無効化 */
    }

    /* フッター (モバイル) */
    .footer-logo img {
        height: 35px;
    }
    .footer-nav ul {
        flex-direction: column;
        align-items: center;
    }
    .footer-nav li {
        margin: 8px 0;
    }
    .signature-block {
        text-align: left;
    }

    /* スクロールトップボタン (reCAPTCHA重複回避) (モバイル) */
    .scroll-top-btn {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .scroll-top-btn::before {
        width: 8px;
        height: 8px;
        border-top-width: 2px;
        border-left-width: 2px;
    }
}