/* --- 基本設定 --- */
:root {
    --primary-color: #6a4a3a; /* 温かみのある茶色 */
    --accent-color: #e59a53;  /* アクセントのオレンジ */
    --bg-color: #fcfaf6;      /* 背景のベージュ */
    --text-color: #555;       /* 基本テキスト色 */
    --light-bg-color: #fff;   /* 白背景 */
    --footer-bg-color: #f0eade;/* フッターの背景色 */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* --- ヘッダー --- */
.header {
    background-color: var(--light-bg-color);
    padding: 15px 0;
    border-bottom: 2px solid var(--accent-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.header-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}
.logo-image {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.header-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.header-nav li {
    margin-left: 35px;
}

.header-nav a {
    font-weight: bold;
    font-size: 1rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.header-nav a.current,
.header-nav a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* --- フッター --- */
.footer {
    background-color: var(--footer-bg-color);
    color: var(--primary-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 80px;
}
.footer p {
    margin: 5px 0;
}

/* --- 汎用コンポーネント --- */
.button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
}
.button:hover {
    background-color: #d98c43;
    opacity: 1;
    transform: translateY(-2px);
}

/* --- トップページ --- */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}
.hero p {
    font-size: 1.2rem;
    font-weight: 500;
}
.concept {
    background-color: var(--light-bg-color);
}
.concept-message {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background-color: var(--light-bg-color);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    border-top: 5px solid var(--accent-color);
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.service-card h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 20px;
}
.service-card ul {
    list-style: none;
    padding: 0;
}
.service-card li {
    margin-bottom: 1.2em;
}
.service-card li strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}
.cta h2 {
    color: #fff;
}
.cta p {
    margin-bottom: 30px;
}

/* --- 事務所情報・スタッフ紹介 共通 --- */
.page-title {
    background-color: var(--footer-bg-color);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}
.page-title h1 {
    font-size: 2.5rem;
    margin: 0;
}

/* --- 事務所情報ページ --- */
.office-info-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}
.office-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.office-info-table dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
}
.office-info-table dt {
    font-weight: bold;
    color: var(--primary-color);
}
.office-info-table dd {
    margin: 0;
}
.message-box {
    background-color: var(--light-bg-color);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    margin-bottom: 60px;
}
.message-box-title {
    text-align: center;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 40px;
}
.message-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.message-text { flex: 1; }
.message-image { flex: 0 0 250px; }
.message-image img { border-radius: 50%; }

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* --- スタッフ紹介ページ --- */
.staff-card {
    background-color: var(--light-bg-color);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.staff-image {
    flex: 0 0 220px;
}
.staff-image img {
    border-radius: 50%;
    border: 6px solid var(--accent-color);
}
.staff-details { flex: 1; }
.staff-title {
    color: var(--accent-color);
    font-weight: bold;
}
.staff-details h2 {
    font-size: 2.2rem;
    margin: 5px 0 30px 0;
}
.staff-section-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--footer-bg-color);
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}
.qualification-list {
    list-style: none;
    padding: 0;
}
.qualification-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}
.qualification-list li::before {
    content: '✓';
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* --- お問合せページ --- */
.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--light-bg-color);
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
}
.form-intro {
    text-align: center;
    margin-bottom: 40px;
}
.form-intro h2 {
    font-size: 1.8rem;
    margin-top: 0;
}
.form-group {
    margin-bottom: 30px;
}
.form-group label {
    display: block;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.form-group label .required {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(229, 154, 83, 0.2);
}
.form-group textarea {
    resize: vertical;
    min-height: 150px;
}
.privacy-policy {
    margin: 30px 0;
    text-align: center;
}
.privacy-policy label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}
.privacy-policy input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2); /* チェックボックスを少し大きく */
}
.form-wrapper .button {
    width: 100%;
    padding: 18px;
}

/* --- 料金案内ページ --- */
.price-notes {
    max-width: 800px;
    margin: 0 auto 60px;
    background-color: var(--light-bg-color);
    padding: 20px 30px;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-radius: 8px;
    text-align: left;
}
.price-notes h3 {
    margin-top: 10px;
}
.price-notes ul {
    list-style: '♬ ';
    padding-left: 20px;
}
.price-category {
    max-width: 800px;
    margin: 0 auto 40px;
    background-color: var(--light-bg-color);
    padding: 40px 50px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.price-category h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--footer-bg-color);
    text-align: center;
}
.price-items {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px 30px;
    align-items: center;
}
.price-items dt {
    font-weight: bold;
    color: var(--primary-color);
}
.price-items dd {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
}
/* 複数行にまたがる注釈用 */
.price-items .note {
    grid-column: 1 / -1; /* 全ての列にまたがる */
    font-size: 0.9rem;
    font-weight: normal;
    color: var(--text-color);
    margin-top: -10px;
    padding-left: 1em;
}
.price-items .note + dd {
    display: none; /* noteの隣のddを非表示 */
}
/* 字下げ用 */
.price-items .indent {
    padding-left: 2em;
}


/* --- レスポンシブ対応 --- */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .office-info-grid {
        grid-template-columns: 1fr;
    }
    .staff-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .staff-image {
        margin-bottom: 30px;
        width: 180px;
    }
    .staff-section-title {
        text-align: left;
    }
    .qualification-list li {
        text-align: left;
    }
    .message-content {
        flex-direction: column-reverse;
        align-items: center;
    }
    .message-image {
        margin-bottom: 30px;
        width: 200px;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
    }
    .header-logo {
        margin-bottom: 15px;
    }
    .header-nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    .header-nav li {
        margin: 5px 10px;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    .hero {
        padding: 100px 20px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .form-wrapper {
        padding: 30px 25px;
    }
    .form-intro h2 {
        font-size: 1.5rem;
    }
    /* 料金案内ページのレスポンシブ対応 */
    .price-category {
        padding: 30px 25px;
    }
    .price-items {
        grid-template-columns: 1fr; /* 1列にする */
        gap: 5px;
    }
    .price-items dd {
        text-align: right;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px dashed #ddd;
    }
     .price-items dt:last-of-type + dd,
    .price-items dd:last-of-type,
    .price-items .note + dd + dt + dd {
        border-bottom: none;
    }
    .price-items .note {
       text-align: left;
       margin-bottom: 15px;
    }
    .price-items .note + dd {
        display: none; /* noteの隣のddを非表示 */
    }
}