/* 
  基本的な設定 
*/
body {
    margin: 0;
    padding: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

/* ヘッダーのスタイル */
header {
    background-color: #003366;
    color: white;
    padding: 20px;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 24px;
}

.logo {
    margin: 0;
    font-size: 24px;
    color: white;
}

/* ナビゲーションのスタイル */
nav {
    background-color: #003366;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav ul {
    margin: 0;
    padding: 15px 0;
    list-style: none;
}

nav li {
    display: inline-block;
    margin: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;
}

/* メインコンテンツのスタイル */
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* ヒーローセクション */
.hero {
    margin-bottom: 40px;
}

.hero h1 {
    color: #0056b3;
    font-size: 28px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
}

h1 {
    color: #0056b3;
    font-size: 28px;
    margin-bottom: 30px;
}

h2 {
    color: #0056b3;
    border-bottom: 2px solid #0056b3;
    padding-bottom: 10px;
    display: inline-block;
}

p {
    margin-bottom: 20px;
}

/* ボタンのスタイル */
button {
    background-color: #e65100;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #bf360c;
    transform: translateY(-2px);
}

/* 業務案内リストのスタイル */
.detailed-services {
    text-align: left;
    margin-top: 50px;
}

.service-item {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px dashed #ccc;
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h2 {
    color: #0056b3;
    font-size: 24px;
    border-bottom: none;
    display: block;
    text-align: center;
    background-color: #e3f2fd;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.intro-text {
    background-color: #fff;
    padding: 15px;
    border-left: 5px solid #ccc;
    margin-bottom: 30px;
}

.checklist-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.checklist-box {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.checklist-box h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 1px solid #aaa;
    display: inline-block;
}

.success-case h3 {
    color: #00796b;
}

.checklist-box ul {
    margin: 0;
    padding-left: 20px;
}

.checklist-box li {
    margin-bottom: 8px;
}

/* ポリシー・事務所紹介 */
.about-section {
    margin-bottom: 50px;
    text-align: left;
}

.about-section h2 {
    color: #0056b3;
    border-left: 5px solid #0056b3;
    border-bottom: none;
    padding-left: 15px;
    background-color: transparent;
    border-radius: 0;
}

.policy-box,
.philosophy-box {
    background-color: #f0f7ff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* おすすめの方 */
.recommended-section {
    background-color: #fff3e0;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 50px;
}

.recommended-section h2 {
    color: #e65100;
    text-align: center;
    border-bottom: 2px dashed #e65100;
    display: inline-block;
    padding-bottom: 5px;
}

.recommended-list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.recommended-list li {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.recommended-list li::before {
    content: "✔";
    color: #e65100;
    margin-right: 10px;
}

/* 情報セキュリティ基本方針・その他開閉セクションのスタイル */
.security-policy,
.message-section {
    margin: 30px 0;
    text-align: left;
}

details {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

summary {
    background-color: #003366;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    /* デフォルトの三角形を消す（Firefox等） */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

summary::-webkit-details-marker {
    display: none;
    /* デフォルトの三角形を消す（Chrome/Safari） */
}

summary {
    background-color: #003366;
    color: white;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

summary:hover {
    background-color: #002244;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
}

details[open] summary::after {
    content: '-';
}

details[open] summary {
    background-color: #002244;
}

.policy-content {
    padding: 25px;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.policy-content h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.policy-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #0056b3;
    border-left: 4px solid #4fc3f7;
    padding-left: 10px;
}

.policy-content p {
    margin-bottom: 15px;
    font-size: 0.95em;
}

/* フッターのスタイル */
footer {
    background-color: #f4f8fb;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
    margin-top: 40px;
}

/* ふわっと浮き上がるアニメーション */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 段落ごとのフェードインアニメーション */
.fade-p {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-p.is-visible {
    opacity: 1;
    transform: translateY(0);
}