@charset "utf-8";

/*// ==========================================
   1. ヒーローセクション (1カラム ＆ カードオーバーラップ)
   ========================================== //*/
#hero {
    position: relative;
    background-image: url('../images/main-visual.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 180px 0 200px;
    overflow: visible; /* カードをはみ出させるためvisibleに */
    text-align: center;
}

#hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 37, 55, 0.65); /* 文字の視認性を高める暗幕 */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    display: block;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-tagline {
    display: block;
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-mincho);
    font-size: 3.4rem;
    line-height: 1.45;
    margin-bottom: 0;
    font-weight: 500;
    color: var(--color-white); /* 背景に合わせて白に */
    letter-spacing: 0.05em;
}

.hero-title span {
    color: var(--color-secondary); /* ゴールドに */
}

.hero-demo-notice {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7); /* 白で少し不透明度を下げて馴染ませる */
    margin-top: 25px;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

/* 青山総合法務カードのオーバーラップ配置用ラッパー */
.hero-card-overlap {
    position: absolute;
    bottom: 0;
    left: calc(50% + (var(--container-width) / 2) - 320px - 20px); /* コンテナの右端に寄せる */
    transform: translateY(75%);
    z-index: 10;
}

/* ビジネス用の極めてクリーンでシャープなタイポグラフィグラフィック */
.hero-img-wrapper {
    width: 320px;
    height: 420px;
    border: 1px solid var(--color-border);
    position: relative;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--color-white);
    box-shadow: 0 0 60px rgba(15, 37, 55, 0.15); /* 四方に均等に広がる光彩（外側）風のシャドウ */
}

.hero-img-wrapper::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(197, 160, 89, 0.2); /* 内側に極細のゴールド枠 */
}

.hero-img-top-line {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-text-sub);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.hero-img-center-group {
    z-index: 2;
}

.hero-img-logo-txt {
    font-family: var(--font-mincho);
    font-size: 1.8rem;
    color: var(--color-bg-deep);
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-img-logo-sub {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--color-secondary);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.hero-img-bottom-txt {
    font-size: 0.7rem;
    color: var(--color-text-sub);
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/*// ==========================================
   2. 特徴・強みセクション (縦スリットステップ)
   ========================================== //*/
#features {
    padding-top: 100px;
    position: relative;
    z-index: 5;
}

.features-list {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
}

.feature-stripe {
    display: flex;
    align-items: flex-start;
    padding: 50px 0; /* 上下の余白を少し詰めました */
    border-bottom: 1px solid var(--color-border);
    gap: 50px;
}

.feature-stripe:first-child {
    border-top: 1px solid var(--color-border);
}

.feature-num-area {
    flex: 0.4;
}

.feature-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    color: var(--color-secondary);
    line-height: 1;
    letter-spacing: 0.05em;
    position: relative;
    padding-left: 15px;
}

.feature-num::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: var(--color-secondary);
}

.feature-info-area {
    flex: 1.6;
}

.feature-stripe h3 {
    font-family: var(--font-mincho);
    font-size: 1.4rem;
    color: var(--color-bg-deep);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-stripe p {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.8;
}

/*// ==========================================
   3. サービス・料金セクション (横スライステーブル)
   ========================================== //*/
.services-list-stripe {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
}

.service-stripe-row {
    display: flex;
    padding: 70px 0;
    border-bottom: 1px solid var(--color-border);
    gap: 60px;
}

.service-stripe-row:first-child {
    border-top: 1px solid var(--color-border);
}

/* おすすめタグ付きの行スタイル */
.service-stripe-row.recommend-row {
    background-color: rgba(245, 248, 250, 0.4);
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.service-stripe-row.recommend-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--color-secondary);
}

.service-left-col {
    flex: 0.8;
}

.service-badge-area {
    margin-bottom: 15px;
}

.service-recommend-badge {
    display: inline-block;
    border: 1px solid var(--color-secondary);
    color: var(--color-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.service-left-col h3 {
    font-family: var(--font-mincho);
    font-size: 1.6rem;
    color: var(--color-bg-deep);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-stripe-desc {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.7;
}

.service-right-col {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-stripe-price-box {
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 15px;
}

.service-stripe-price-box .price-label {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    letter-spacing: 0.05em;
}

.service-stripe-price-box .price-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.service-stripe-price-box .price-num small {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-sub);
    margin-left: 5px;
}

.service-stripe-details-title {
    font-size: 0.85rem;
    color: var(--color-bg-deep);
    font-weight: 700;
    letter-spacing: 0.05em;
}

.service-details-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
}

.service-details-list li {
    font-size: 0.85rem;
    color: var(--color-text-main);
    position: relative;
    padding-left: 18px;
}

.service-details-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1px;
    background-color: var(--color-secondary);
}

/*// ==========================================
   4. 代表紹介・プロフィール (アシンメトリー)
   ========================================== //*/
.profile-asymmetry-layout {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin-top: 60px;
}

.profile-visual-col {
    flex: 0.7;
}

.profile-visual-frame {
    border: 1px solid var(--color-border);
    padding: 15px;
    background-color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-visual-frame::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(197, 160, 89, 0.1);
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.profile-text-col {
    flex: 1.3;
}

.profile-meta-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.profile-post {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-secondary);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.profile-text-col h2 {
    font-family: var(--font-mincho);
    font-size: 2rem;
    color: var(--color-bg-deep);
    font-weight: 500;
}

.profile-text-col h2 span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-sub);
    margin-left: 20px;
    letter-spacing: 0.15em;
}

.profile-description-txt {
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-text-main);
    margin-bottom: 40px;
}

/* プロフィール詳細ボタンエリア */
.profile-more-area {
    text-align: right;
    margin-top: 30px;
    border-top: 1px dashed var(--color-border);
    padding-top: 25px;
}

.profile-more-area .btn-main {
    display: inline-block;
    text-decoration: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.profile-history-title {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
    color: var(--color-bg-deep);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* 表形式のタイムライン */
.profile-history-table {
    display: flex;
    flex-direction: column;
}

.history-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid rgba(230, 235, 242, 0.6);
    align-items: baseline;
}

.history-row:first-child {
    border-top: 1px solid rgba(230, 235, 242, 0.6);
}

.history-year {
    flex: 0.3;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.history-desc {
    flex: 1.7;
    font-size: 0.85rem;
    color: var(--color-text-sub);
    line-height: 1.6;
}

/*// ==========================================
   5. よくあるご質問 (FAQ) 左右2カラム
   ========================================== //*/
.faq-asymmetry-container {
    display: flex;
    gap: 80px;
}

.faq-title-col {
    flex: 0.7;
    position: sticky;
    top: 150px;
}

.faq-title-col .section-header {
    margin-bottom: 0;
}

.faq-list-col {
    flex: 1.3;
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    background-color: transparent;
    margin-bottom: 0;
    border-radius: 0;
    overflow: hidden;
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-q {
    padding: 24px 40px 24px 0;
    font-family: var(--font-mincho);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-bg-deep);
    cursor: pointer;
    position: relative;
    user-select: none;
    transition: color 0.3s;
}

.faq-q:hover {
    color: var(--color-primary);
    background-color: transparent; /* 背景変化を廃止し、テキストカラーフェードのみに */
}

.faq-q::before {
    content: "Q.";
    color: var(--color-secondary);
    margin-right: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
}

.faq-icon {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    font-size: 0.6rem;
    color: var(--color-text-sub);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: translateY(-50%) rotate(180deg);
}

.faq-a {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
    background-color: transparent;
    border-top: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--color-text-sub);
}

.faq-item.active .faq-a {
    padding: 0 0 24px 30px;
    max-height: 250px;
    border-top: 0;
}

.faq-a::before {
    content: "A.";
    color: var(--color-primary);
    margin-right: 15px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    display: inline-block;
    float: left;
    line-height: 1.2;
}

/*// ==========================================
   6. お問い合わせセクション (左右2カラム分割)
   ========================================== //*/
.contact-split-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.contact-info-col {
    flex: 0.8;
}

.contact-info-col h3 {
    font-family: var(--font-mincho);
    font-size: 1.6rem;
    color: var(--color-bg-deep);
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-info-lead {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-office-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.office-detail-item {
    border-left: 2px solid var(--color-secondary);
    padding-left: 20px;
}

.office-detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-sub);
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.office-detail-val {
    font-family: var(--font-mincho);
    font-size: 1.25rem;
    color: var(--color-bg-deep);
    font-weight: 600;
}

.office-detail-val.tel-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-primary);
    font-weight: 600;
}

.contact-form-col {
    flex: 1.2;
    width: 100%;
}

/* フォーム専用の洗練されたシャープスタイル */
.contact-form-side-box {
    background: var(--color-white);
    padding: 50px 40px; /* 内側にゆったりとした余白を確保 */
    border: 1px solid var(--color-border); /* 繊細な境界線でボックスを明示 */
    box-shadow: 0 4px 15px rgba(15, 37, 55, 0.03); /* 柔らかなシャドウで高級感をプラス */
}

.form-group {
    margin-bottom: 30px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: var(--font-mincho);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--color-bg-deep);
}

.badge-req, .badge-opt {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 0;
    margin-left: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.badge-req {
    background-color: transparent;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.badge-opt {
    background-color: transparent;
    color: var(--color-text-sub);
    border: 1px solid var(--color-border);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--color-border);
    border-radius: 0; /* 完全な直角 */
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--color-text-main);
    box-sizing: border-box;
    background-color: var(--color-white);
    transition: border-color 0.4s, background-color 0.4s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: none; /* 影を排除 */
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "▼";
    font-size: 0.6rem;
    color: var(--color-primary);
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
}

.form-btn-area {
    margin-top: 40px;
}

/*// ==========================================
   9. 新着情報セクション (NEWS)
   ========================================== //*/
#news {
    padding-top: 120px; /* カード避けのための上部余白 */
    position: relative;
}

.news-header {
    max-width: 650px; /* 右側のカードと被らないように幅を制限 */
    margin-bottom: 0;
}

.news-list-area {
    margin-top: 160px; /* カードの下端を完全に避けるマージン */
}

.front-news-list {
    display: flex;
    flex-direction: column;
}

.front-news-item {
    border-bottom: 1px solid var(--color-border);
    padding: 30px 0;
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.front-news-item:first-child {
    border-top: 1px solid var(--color-border);
}

.front-news-meta {
    flex: 0.25;
}

.front-news-date {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.front-news-body {
    flex: 1.75;
}

.front-news-title {
    font-family: var(--font-mincho);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-bg-deep);
    margin-bottom: 12px;
    line-height: 1.5;
}

.front-news-content {
    font-size: 0.9rem;
    color: var(--text-sub);
    line-height: 1.7;
    margin: 0;
}

.front-news-link-area {
    margin-top: 12px;
}

.front-news-more-link {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.3s, transform 0.3s;
}

.front-news-more-link:hover {
    color: var(--color-secondary);
    transform: translateX(4px);
}

/*// ==========================================
   下層ページ・トップサマリー共通スタイル
   ========================================== //*/

/* 下層共通ページヘッダー */
.page-header {
    background-color: var(--color-bg-deep);
    padding: 60px 0;
    text-align: center;
    color: var(--color-white);
}

.page-header span {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.page-header h1 {
    font-family: var(--font-mincho);
    font-size: 2.2rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.05em;
}

/* 事務所概要カード (about/index.php) */
.office-info-card {
    margin-top: 50px;
    padding: 30px;
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
}

.office-info-card h3 {
    font-family: var(--font-mincho);
    font-size: 1.1rem;
    color: var(--color-bg-deep);
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.office-info-card table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
    line-height: 1.8;
}

.office-info-card th {
    text-align: left;
    padding: 8px 0;
    font-family: var(--font-mincho);
    color: var(--color-bg-deep);
    vertical-align: top;
    width: 35%;
}

.office-info-card td {
    padding: 8px 0;
    color: var(--color-text-main);
}

/* トップページサービス概要 (index.php) */
.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-summary-card {
    background: var(--color-white);
    padding: 40px 30px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(15, 37, 55, 0.03);
}

.service-summary-card h3 {
    font-family: var(--font-mincho);
    font-size: 1.4rem;
    color: var(--color-bg-deep);
    margin-top: 0;
    margin-bottom: 15px;
}

.service-summary-card p {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    line-height: 1.7;
    margin-bottom: 25px;
}

.service-summary-card span {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* サービス詳細ボタンエリア */
.services-more-area {
    text-align: center;
    margin-top: 50px;
}

.services-more-area .btn-main {
    display: inline-block;
    text-decoration: none;
    padding: 15px 40px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* 採用情報 (recruit/index.php) */
#recruit-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.recruits-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.recruit-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 40px;
    box-shadow: 0 4px 15px rgba(15, 37, 55, 0.03);
    transition: border-color 0.4s;
}

.recruit-card:hover {
    border-color: var(--color-secondary);
}

.recruit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.recruit-title-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.recruit-card-header h2 {
    font-family: var(--font-mincho);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-bg-deep);
    margin: 0;
}

.recruit-card-header .recruit-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-sub);
    font-weight: 700;
}

.recruit-type-badge {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    letter-spacing: 0.05em;
}

.recruit-card-body {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.8;
    white-space: pre-wrap;
    margin-bottom: 30px;
}

.recruit-card-footer {
    text-align: right;
    border-top: 1px dashed var(--color-border);
    padding-top: 25px;
}

.btn-recruit-apply {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
    padding: 12px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.4s;
    letter-spacing: 0.05em;
}

.btn-recruit-apply:hover {
    background-color: var(--color-bg-deep);
}

.no-recruits-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 40px;
    text-align: center;
    color: var(--color-text-sub);
}

/* 送信完了ページ (contact/send.php) */
.thanks-box {
    background: var(--color-white);
    padding: 50px 40px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(15, 37, 55, 0.03);
    display: inline-block;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.thanks-icon {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 25px;
    line-height: 1;
}

.thanks-box h2 {
    font-family: var(--font-mincho);
    color: var(--color-bg-deep);
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.thanks-box p {
    font-size: 0.95rem;
    color: var(--color-text-main);
    line-height: 1.8;
    margin-bottom: 35px;
    text-align: left;
}

/* お問い合わせページ用追加スタイル */
.office-detail-note {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    display: block;
    margin-top: 5px;
}

.contact-form-side-box textarea {
    min-height: 180px;
}

.contact-form-side-box .btn-main {
    width: 100%;
    border: none;
    padding: 15px;
    font-weight: 700;
    cursor: pointer;
}



/*// ==========================================
   8. スクロール背景アニメーション (Decoration Shapes)
   ========================================== //*/

/* 共通設定：これを消しちゃってたのが下がった原因です！ */
.bg-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1; /* コンテンツの下、背景の上 */
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 文字を背景図形（z-index: 1）より手前に配置するための設定 */
#news .container,
#features .container,
#services .container {
    position: relative;
    z-index: 2;
}

/* --- 特徴セクション（円） --- */
#features {
    position: relative;
    overflow: hidden;
}

#features .shape-circle {
    left: -550px; /* 左側をわざとはみ出させて見切れさせる */
    top: -570px;  /* 上側もわざとはみ出させて見切れさせる */
    width: 1250px;
    height: 1250px;
    transform: rotate(-30deg) scale(0.9);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#features .shape-circle svg {
    width: 100%;
    height: 100%;
}

#features .shape-circle svg circle {
    fill: none;
    stroke: rgba(197, 160, 89, 0.55); /* ゴールド */
    stroke-width: 18px;
    stroke-dasharray: 260;
    stroke-dashoffset: 260;
    transition: stroke-dashoffset 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 親セクションがアクティブになったら、円の描画と表示を開始 */
#features.is-active .shape-circle {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

#features.is-active .shape-circle svg circle {
    stroke-dashoffset: 0;
}

/* --- サービスセクション（3連矢印） --- */
#services {
    position: relative;
    overflow: hidden;
}

#services .shape-arrows {
    position: absolute;
    right: 40px;
    top: 40px;
    display: flex;
    gap: 0; /* gapは0にし、より確実なmargin-leftのマイナス値で重ね合わせを制御します */
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#services .arrow-item {
    width: 320px; /* アスペクト比1.2:1（横長で鋭い尖り）に合わせ、幅320pxに拡大 */
    height: 266px; /* 高さは266pxに調整 */
    flex-shrink: 0; /* ブラウザが勝手に矢印を細く縮小するのを防止！ */
    fill: rgba(16, 76, 130, 0.18); /* 肉厚で重なりが深くなったため、不透明度を18%に抑えて上品にブレンド */
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2枚目・3枚目の矢印にマイナスマージンを当て、確実に重ね合わせます */
#services .arrow-item + .arrow-item {
    margin-left: -130px; /* ここで物理的に重ねて、尖っている分の空白をギュッと潰して一体化させます */
}

/* 親のサービスセクションがアクティブになったら発火 */
#services.is-active .shape-arrows {
    opacity: 1;
}

#services.is-active .arrow-1 {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

#services.is-active .arrow-2 {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.28s;
}

#services.is-active .arrow-3 {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.46s;
}

/* --- 代表紹介セクション（L字ライン） --- */
.shape-line-l {
    position: absolute;
    left: -25px;
    bottom: -25px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    z-index: -1;
}

.shape-line-l::before,
.shape-line-l::after {
    content: "";
    position: absolute;
    background-color: var(--color-secondary);
    opacity: 0.85; /* 不透明度 85% */
}

/* 縦線 */
.shape-line-l::before {
    left: 0;
    bottom: 0;
    width: 5px; /* 線の太さ 5px */
    height: 0;
    transition: height 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 横線 */
.shape-line-l::after {
    left: 0;
    bottom: 0;
    height: 5px; /* 線の太さ 5px */
    width: 0;
    transition: width 1.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 親セクションがアクティブになったら発火 */
#profile.is-active .shape-line-l::before {
    height: 100%;
    transition-delay: 0.4s; /* 写真が見えるころに動き始めるよう、少し遅らせる */
}

#profile.is-active .shape-line-l::after {
    width: 100%;
    transition-delay: 1.2s; /* 縦線がある程度伸びてから横線が動き出す */
}

/*// ==========================================
   10. トップページお問い合わせCTA (index.php)
   ========================================== //*/
#top #contact {
    padding: 100px 0;
    text-align: center;
}

#top #contact .container {
    max-width: 700px;
    margin: 0 auto;
}

#top #contact .section-header {
    margin-bottom: 40px;
}

#top #contact .section-intro {
    margin-top: 20px;
}

.contact-cta-area {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-cta-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 30px;
    width: 280px;
    text-align: left;
    box-sizing: border-box;
}

.contact-cta-card.web-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-cta-label {
    font-size: 0.8rem;
    color: var(--color-text-sub);
    display: block;
    margin-bottom: 5px;
}

.contact-cta-card.web-card .contact-cta-label {
    margin-bottom: 10px;
}

.contact-cta-tel {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 700;
    display: block;
}

.contact-cta-note {
    font-size: 0.75rem;
    color: var(--color-text-sub);
    display: block;
    margin-top: 5px;
}

.contact-cta-card .btn-main {
    display: block;
    text-decoration: none;
    padding: 12px 10px;
    font-weight: 700;
    text-align: center;
    font-size: 0.9rem;
}


/*// ==========================================
   7. レスポンシブ対応 (アシンメトリー要素の最適化)
   ========================================== //*/

/* 【TB】 1024px 以下 */
@media screen and (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-card-overlap {
        left: auto;
        right: 40px; /* 画面右端に寄せる */
        transform: translateY(80%);
    }

    .hero-img-wrapper {
        width: 280px;
        height: 380px;
    }

    #features .section-header {
        max-width: calc(100% - 320px); /* カードと被らないように幅を制限 */
    }

    .feature-stripe {
        gap: 30px;
    }

    .service-stripe-row {
        gap: 40px;
    }

    .profile-asymmetry-layout {
        gap: 40px;
    }

    .faq-asymmetry-container {
        gap: 40px;
    }

    .contact-split-container {
        gap: 40px;
    }
}

/* 【SM】 768px 以下 */
@media screen and (max-width: 768px) {
    /* 背景図形やL字装飾ラインを非表示にしてレイアウト崩れを防ぐ */
    .bg-shape,
    .shape-line-l {
        display: none !important;
    }

    #news {
        padding-top: 390px; /* カードがテキスト量で伸びるのを考慮し、335pxから390pxに広げて下に30pxの余白を確保 */
    }

    #news .news-header {
        max-width: 100%;
        text-align: center;
    }

    #news .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .news-list-area {
        margin-top: 50px; /* スマホではカードが中央移動するため上部マージンを縮める */
    }

    .front-news-item {
        flex-direction: column;
        gap: 8px;
        padding: 25px 0;
    }
    
    .front-news-meta {
        width: 100%;
    }
    
    .front-news-body {
        width: 100%;
    }

    #features {
        padding-top: 70px; /* 通常のスマホパディングに戻す */
    }

    #features .section-header {
        max-width: 100%;
        text-align: center;
    }

    #features .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .features-list {
        margin-top: 60px; /* スマホでは通常の余白に戻す */
    }

    .hero-container {
        display: block;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-demo-notice {
        font-size: 0.75rem;
        margin-top: 15px;
    }

    .hero-card-overlap {
        left: 50%;
        right: auto;
        transform: translate(-50%, 80%); /* スマホでは中央寄せ */
    }

    .hero-img-wrapper {
        width: 290px;
        height: 380px;
        box-shadow: 0 0 45px rgba(15, 37, 55, 0.15);
    }

    .feature-stripe {
        flex-direction: column;
        gap: 15px;
        padding: 40px 0;
    }

    .feature-num-area {
        width: 100%;
    }

    .feature-num {
        font-size: 3rem;
        padding-left: 10px;
    }

    .feature-info-area {
        width: 100%;
    }

    .service-stripe-row {
        flex-direction: column;
        gap: 25px;
        padding: 40px 0;
    }

    .service-left-col,
    .service-right-col {
        width: 100%;
    }

    .profile-asymmetry-layout {
        flex-direction: column;
        gap: 40px;
    }

    .profile-visual-col {
        width: 100%;
        max-width: 320px;
    }

    .profile-dummy-silhouette {
        height: 320px;
    }

    .profile-text-col {
        width: 100%;
    }

    .faq-asymmetry-container {
        flex-direction: column;
        gap: 40px;
    }

    .faq-title-col {
        position: static;
        width: 100%;
    }

    .faq-list-col {
        width: 100%;
    }

    .faq-q {
        padding: 20px 30px 20px 0;
        font-size: 0.95rem;
    }

    .faq-item.active .faq-a {
        padding: 0 0 20px 20px;
    }

    .contact-split-container {
        flex-direction: column;
        gap: 50px;
    }

    .contact-info-col,
    .contact-form-col {
        width: 100%;
    }

    #top #contact {
        padding: 70px 0;
    }

    .contact-cta-card {
        width: 100%;
        max-width: 320px;
    }

    .contact-form-side-box {
        padding: 30px 20px; /* スマホ表示では横幅を圧迫しないよう余白を少し縮める */
    }
}

/* 【SP】 479px 以下 */
@media screen and (max-width: 479px) {
    #hero {
        padding: 100px 0 160px; /* カードを避けるため下部を広げる */
    }

    .hero-title {
        font-size: 2.0rem;
    }

    .hero-demo-notice {
        font-size: 0.7rem;
        margin-top: 12px;
    }

    #news {
        padding-top: 360px; /* SPサイズでもカードがテキスト量で伸びるのを考慮し、320pxから360pxに広げて余白を確保 */
    }

    #features {
        padding-top: 50px; /* SPサイズでの通常パディングに戻す */
    }

    .service-details-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .history-row {
        flex-direction: column;
        gap: 5px;
    }

    .history-year {
        width: 100%;
    }

    .history-desc {
        width: 100%;
    }

    .office-detail-val.tel-num {
        font-size: 1.5rem;
    }
}



/*// ==========================================
   10. 無料相談カレンダー (フロントエンド)
   ========================================== //*/
.front-calendar-wrap {
    margin-top: 15px;
}

.front-calendar-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    padding: 20px;
}

.front-calendar-box h4 {
    font-family: var(--font-mincho);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-bg-deep);
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 8px;
}

.front-cal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.front-cal-table th, .front-cal-table td {
    border: 1px solid var(--color-border);
    padding: 6px 2px;
    text-align: center;
    width: 14.28%;
    box-sizing: border-box;
}

.front-cal-table th {
    background-color: var(--color-bg-light);
    font-weight: 700;
    color: var(--color-text-main);
}

.front-cal-table td {
    height: 48px;
    vertical-align: middle;
    position: relative;
    cursor: default;
}

.front-cal-table td.empty-cell {
    background-color: #fafbfd;
}

.front-cal-table td.clickable {
    cursor: pointer;
    transition: background-color 0.3s;
}

.front-cal-table td.clickable:hover {
    background-color: rgba(16, 76, 130, 0.05);
}

.front-cal-table .day-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 2px;
}

.front-cal-table .cell-sun .day-num, .front-cal-table .text-sun {
    color: #d9534f;
}

.front-cal-table .cell-sat .day-num, .front-cal-table .text-sat {
    color: var(--color-primary);
}

.front-cal-table .day-status {
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon {
    font-size: 0.8rem;
    font-weight: 700;
}

.status-icon.ok {
    color: #2e6b2e;
}

.status-icon.few {
    color: #b28900;
}

.status-icon.ng {
    color: #d9534f;
}

.status-icon.none {
    color: #999;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--color-text-sub);
}

.legend-item {
    display: inline-flex;
    align-items: center;
}

.legend-item .icon {
    font-weight: bold;
    margin-right: 4px;
}

/*// ==========================================
   11. デモ用管理画面フローティングボタン
   ========================================== //*/
.demo-admin-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.demo-admin-floating a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-bg-deep);
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(15, 37, 55, 0.3);
    transition: all 0.3s ease;
}

/* ホバー時の共通スタイル */
.demo-admin-floating a:hover {
    box-shadow: 0 15px 40px rgba(15, 37, 55, 0.4);
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 1;
}

/* PC（マウス操作）でのみ、ホバー時にボタンが浮き上がるようにする */
@media (hover: hover) {
    .demo-admin-floating a:hover {
        transform: translateY(-3px);
    }
}

.demo-admin-floating .icon {
    font-size: 1.1rem;
    display: inline-block;
    animation: spin-gear 6s linear infinite;
}

@keyframes spin-gear {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* スマホ（768px以下） */
@media screen and (max-width: 768px) {
    .demo-admin-floating {
        bottom: 20px;
        right: 20px;
    }
    .demo-admin-floating a {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
}
