/* --- Reset & Basic --- */
*,
*::before,
*::after {
  box-sizing: border-box; /* ← この3行を追記 */
}
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button {color:inherit}
body {
    font-family: 'Noto Serif JP', serif;
    color: #333;
    background-color: #fffdf9;
}
body::before {
  content: ''; /* 疑似要素には必須 */
  display: block;
  position: fixed; /* スクロールしても追従させる */
  top: 0;
  left: 0;
  width: 3%; /* ストライプの幅（任意で調整） */
  height: 100%; /* 画面の高さいっぱい */
  background-color: #580505; /* エンジ色（任意で調整） */
  z-index: 100; /* 他の要素との重なり順（必要に応じて調整） */
}

/* --- Common Layout --- */
.section-container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.lp-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: anywhere;
}
.section-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.section-title {
    color: #580505;
    font-size: 36px;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 0.1em;
}
.section-title-standalone{
    letter-spacing: 0.1em;
}
.text2 {
    font-size: 24px;
    line-height: 1.6;
    letter-spacing: 0.1em
}
.text3 {
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0.1em;
}

/* --- Accordion (Common Functional Style) --- */
[data-accordion-content] {
    display: none; /* 初期状態ではコンテンツを隠す */
}
/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    
}

.hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}
.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: #bdbcbc;
    display: block;
    transition: all 0.3s;
}
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
.hamburger-menu.active span { background-color: #fff; }

.global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 30%;
    height: 90%;
    background-color: rgba(0, 0, 0, 0.9);
    transition: right 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.global-nav.active { right: 0; }
.nav-list { text-align: center; }
.nav-list li a {
    color: #fff;
    font-size: 24px;
    display: block;
    padding: 15px;
    transition: opacity 0.3s;
}
.nav-list li a:hover { opacity: 0.7; }

/* 汎用アニメーションの定義 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* 下から30pxの位置からスタート */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Hero --- */
.hero-section {
    position: relative; /* 子要素のabsolute配置の基準にする */
    height: auto;
    display: flex; /* 中央揃えのためflexを使用 */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* 装飾テキストがはみ出さないようにする */
}
.hero-bg-container {
    position: absolute; /* 'absolute' から 'fixed' に変更 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* '100%' から '100vh' に変更して画面の高さいっぱいにする */
    object-fit: scale-down;
    z-index: -1; /* '0' から '-1' に変更して全てのコンテンツの背面に配置 */
}
.hero-container {
    position: relative; /* bottom-areaの配置基準にする */
    z-index: 2;
    width: 100%;
    height: 80vh; /* 高さを指定して、右下配置の基準を明確にする */
    max-width: 1200px; /* コンテンツが広がりすぎないように最大幅を設定 */
    padding: 0 40px;
    display: flex;
    justify-content:center;
    align-items: center; /* 名前エリアを垂直方向に中央揃え */
}
/* テキスト全体のコンテナ */
.hero-text-content {
    color: #333;
    width: 100%;
    position: relative; /* .bottom-areaの配置の基準にするため追加 */
    height: 100%; /* .bottom-areaの配置の基準にするため追加 */
}
/* 
  アニメーションの初期状態：
  .text-animation の中のアニメーション対象アイテムは、最初は透明で見えない状態にする
*/
.text-animation .anim-item-1,
.text-animation .anim-item-2,
.text-animation .anim-item-3 {
    opacity: 0;
}

/* 
  JavaScriptによって .is-animated クラスが付与された後のスタイル 
*/

/* 氏名のアニメーション */
.text-animation.is-animated .anim-item-1 {
    animation-name: slideInUp;      /* アニメーションの種類 */
    animation-duration: 0.8s;     /* アニメーションの時間 */
    animation-timing-function: ease-out; /* アニメーションの変化の仕方 */
    animation-fill-mode: forwards;  /* アニメーション終了後、その状態を維持 */
}

/* キャッチコピーのアニメーション */
.text-animation.is-animated .anim-item-2 {
    animation-name: slideInUp;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0.3s; /* 0.3秒遅れて開始 */
}

/* 情報のアニメーション */
.text-animation.is-animated .anim-item-3 {
    animation-name: slideInUp; 
    animation-duration: 1s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0.6s; /* 0.6秒遅れて開始 */
}

/* 左側：名前エリア */
.top-area {
    text-align: left;
    /* 位置の微調整が必要な場合は以下のコメントアウトを解除 */
    position: absolute;
    top: 15%;
}
.name {
    text-align: left;
    position: relative;
}
.name::after {
    content: ''; /* 擬似要素には必須のプロパティです */
    position: absolute; /* .name を基準に絶対配置します */    
    /* これで線の位置が決まります */
    right: 0; /* .name の左端から線を開始 */
    bottom: -20px; /* .name の下端(paddingエリアの最下部)に線を配置 */
    /* これで線の見た目が決まります */
    width: 100vw; /* ★★★ この値を変更して、線の長さを調整してください ★★★ */
    height: 3px; /* 線の太さ */
    background-color: #580505; /* 線の色。デザインに合わせて変更してください。 */
}

.position { 
    font-size: 1.2rem;
}
.name span{
    color:#580505;
}
.hero-name-ja { 
    font-size: 3rem; 
    letter-spacing: 0.2em;
    margin: 10px 0;
}
.hero-name-en { 
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* 右下：事務所情報エリア */
.bottom-area {
    position: absolute; /* 絶対配置に変更 */
    bottom: 2rem; /* 親要素(.hero-text-content2)の下端に配置 */
    right: 0; /* 親要素(.hero-text-content2)の右端に配置 */
    font-size: 1.0rem;
    text-align: right;
    line-height: 1.8;
    letter-spacing: 0.1rem;
}

.catch-area {
    color: #580505;
    font-style: italic;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.1rem;
    padding-bottom: 10px;
    position: relative;
    gap: 1em; 
}

.catch-area::after {
    content: ''; /* 擬似要素には必須のプロパティです */
    position: absolute; /* .catch-area を基準に絶対配置します */    
    /* これで線の位置が決まります */
    left: 0; /* .catch-area の左端から線を開始 */
    bottom: -5px; /* .name の下端(paddingエリアの最下部)に線を配置 */
    /* これで線の見た目が決まります */
    width: 100vw; /* ★★★ この値を変更して、線の長さを調整してください ★★★ */
    height: 3px; /* 線の太さ */
    background-color: #580505; /* 線の色。デザインに合わせて変更してください。 */

}
.catch-area span {
    display: inline-block;
}

.bottom-area p{
margin-top: 15px;
}

/* line-linkは今回のデザインでは使わないため非表示に */
.line-link {
    display: none;
}
/* --- greetings Section --- */
.greetings-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

/* コンテンツコンテナ */
.greetings-container {
    /* アニメーション用のスタイルはそのまま */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.greetings-container.is-in-view {
    opacity: 1;
}

/* セクションタイトル */
.greetings-section .section-title {
    color: #580505;
    font-size: 36px;
    font-family: serif;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.greetings-section .section-title::after {
    content: '';
    height: 1px;
    background-color: #580505;
    flex-grow: 1;
}

/* グリッドコンテナの設定 */
.greetings-float-layout {
    display: grid;
    /* 3つの均等な幅の列と、自動の高さの行を作成 */
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 30px; /* グリッドアイテム間の隙間 */
    width: 90%;
    margin: 0 auto;
}

/* テキストラッパーの配置 */
.greetings-text-wrapper {
    /* 1列目から始まり、3列にまたがる（ほぼ全幅）*/
    grid-column: 1 / span 3;
    /* 1行目に配置 */
    grid-row: 1;
    
    /* テキストが画像の上に重なるように z-index を指定 */
    position: relative;
    z-index: 2;
}
.greetings-text-wrapper .text-paragraph {
    font-size: 16px;
    line-height: 2;
    color: #333;
    margin-bottom: 2em;
}
.greetings-text-wrapper .text-paragraph:last-child {
    margin-bottom: 0;
}

/* 画像ラッパーの配置 */
.greetings-image-wrapper {
    /* 2列目から始まり、2列にまたがる（右側2/3）*/
    grid-column: 3 / span 2;
    /* 1行目に配置 */
    grid-row: 1;

    /* テキストの下に潜り込むように z-index を指定 */
    position: relative;
    z-index: 1;

    /* テキストの後半部分と重なるように、少し上にずらす */
    margin-top: 20%; 
}

.greetings-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* 
      オーバーレイの色を指定します。
      #fdfaf4 はセクションの背景色です。
      最後の 0.3 の部分が透明度です。(0に近いほど透明、1に近いほど不透明)
      この値を調整してお好みの濃さにしてください。
    */
    background-color: rgba(253, 250, 244, 0.651); 

    /* 画像の上に表示されるように z-index を指定 */
    z-index: 1;
}
/* ▲▲▲ ここまで追記 ▲▲▲ */
.greeting-float-image {
    width: 100%;
    height: auto;
    display: block;
    filter: blur(2px);
    
}

/* --- policy Section --- */
.policy-section {
    padding: 80px 0;
}
.policy-section .section-title {
    color: #580505;
    text-align: left;
    position: relative;
    display: flex; /* Flexboxを有効にする */
    align-items: center; /* 子要素（テキストと線）を垂直方向の中央に揃える */
    gap: 1em; /* テキストと線の間の隙間を空ける */
}
.policy-section .section-title::after {
    content: '';
    height: 2px;
    background-color: #580505;
    flex-grow: 1; 
}
.policy-container {
    /* アニメーションの初期状態と設定*/
    opacity: 0; /* 初期状態: 透明 */
    transition: opacity 1.5s ease-in-out; /* 1.5秒かけて変化 */
}
/* アニメーションの初期状態と設定*/
.policy-container.is-in-view {
    opacity: 1;
}
.policy-list-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    margin: auto;
}
.policy-copy {
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1em
}

.policy-item {
    margin-bottom: 15px;
    text-align: center;
}
.policy-question {
    border-bottom: 1px solid rgba(53, 53, 53, 0.678);
    cursor: pointer;
    position: relative;
    padding: 0 15px; /* アイコンのスペース */
    display: inline-block;
    align-items: baseline;
    font-weight:400;
}
.q-text {
    font-weight: bold;
}

.policy-question .mark {
    flex-shrink: 0;
}
.policy-answer-content{
    display: flex;
}
.policy-answer .a-text {
    flex: 1;
    margin-top: 10px;
}

/* --- Career Section --- */
.career-section .career-container {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto;
    /* ユーザー指定のアニメーション設定を維持 */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}
.career-section .career-container.is-in-view {
    opacity: 1;
}

/* セクションタイトル (左寄せ + 右側の線) */
.career-section .section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 50px;
    display: flex;       /* Flexboxを有効化 */
    align-items: center; /* テキストと線を垂直中央揃え */
    gap: 20px;           /* テキストと線の間の隙間 */
}
/* タイトルの右側の線 */
.career-section .section-title::after {
    content: '';
    height: 2px;         /* 線の太さ */
    background-color: #580505;
    flex-grow: 1;        /* 残りの幅をすべて線で埋める */
}

/* 経歴リストと画像のラッパー */
.career-content-wrapper {
    display: flex;
    width: 90%;
    margin: 0 auto;
    align-items: flex-start;      /* 上端揃え */
    gap: 5%;                      /* カラム間の隙間 */
}

/* 左側: 経歴リスト */
.career-history {
    flex: 1 1 50%; /* 幅を柔軟に調整 */
    text-align: left;
    opacity: 0; /* 初期状態: 透明 */
    transform: translateX(-30px); /* 初期状態: 30px下にずらす */
    transition: opacity 0.6s ease-out, transform 1.0s ease-out;
}
.career-history.is-in-view {
    opacity: 1;
    transform: translateX(0);
}
.career-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.career-history li {
    font-size: 16px;
    padding: 15px 0;
    border-bottom: 1px solid #ccc;
}

/* 右側: 画像エリア */
.career-inset-image {
    flex: 0 0 40%; /* 幅を40%に設定（伸縮させない） */
    max-width: 380px;
    position: relative; /* 疑似要素を配置するための基準点 */
    opacity: 0; /* 初期状態: 透明 */
    transform: translateX(30px); /* 初期状態: 30px下にずらす */
    transition: opacity 0.6s ease-out, transform 1.0s ease-out;
}
.career-inset-image.is-in-view {
    opacity: 1;
    transform: translateX(0);
}
/* 画像本体のスタイル */
.career-inset-image img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #580505; /* 画像に直接ボーダーを設定 */
    position: relative; /* z-indexを効かせるため */
    z-index: 2; /* 飾り枠より手前に表示 */
}
/* 画像の背後の飾り枠を::afterで作成 */
.career-inset-image::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: #580505;
    position: absolute;
    right: -30px;  /* 右にはみ出す */
    bottom: -30px; /* 下にはみ出す */
    z-index: 1;    /* 画像の背後に配置 */
}

/* --- Accordion Section --- */
/* --- Fields Section (取扱分野) --- */
.fields-section {
    padding: 80px 0;
}

/* セクションタイトル */
.fields-section .section-title {
    color: #580505;
    font-size: 36px;
    font-family: serif; /* 明朝体のようなフォント */
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    opacity: 0;
    transform: perspective(100px) translateZ(-20px); /* 初期状態: 30px下にずらす */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
.section-title.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

.fields-section .section-title::after {
    content: '';
    height: 1px;
    background-color: #580505;
    flex-grow: 1;
}

/* アコーディオン全体 */
.accordion-item {
    margin: 0 auto;
    padding: 0 20px;
    width: 90%;
    margin-top: 20px;
}

/* アコーディオンヘッダー */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    cursor: pointer;
    color: #fff;
    opacity: 0;
    transform: translateY(-30px); /* 初期状態: 30px下にずらす */
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
.accordion-header.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

.accordion-title {
    font-weight: bold;
}

/* ボタン（右側の要素） */
.accordion-toggle-button {
    background: none;
    border: none;
    cursor: pointer;

    /* ▼▼▼ ここからが重要 ▼▼▼ */
    /* ボタンのサイズを固定し、アイコンの基準点とする */
    width: 30px; 
    height: 30px;
    position: relative; 

    /* ブラウザデフォルトの余白をリセット */
    padding: 0; 

    /* flexアイテムとして縮まないようにする */
    flex-shrink: 0;
}

/* --- アコーディオンのプラス・マイナスアイコン --- */
.plus-minus-icon {
    display: block;
    width: 100%;
    height: 100%;
}

/* ::before と ::after でプラスの「ー」と「｜」の線を作成 */
.plus-minus-icon::before,
.plus-minus-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    /* ↓ 親要素（.accordion-header）の色を継承するように変更 */
    background-color: currentColor;
    transition: transform 0.3s ease-out; /* アニメーションを追加 */
}

/* 横棒（マイナス記号のベース） */
.plus-minus-icon::before {
    width: 20px; /* 線の長さ */
    height: 3px; /* 線の太さ */
    margin-left: -10px; /* 長さの半分を左にずらして中央揃え */
    margin-top: -1.5px; /* 太さの半分を上にずらして中央揃え */
}

/* 縦棒（プラス記号のパーツ） */
.plus-minus-icon::after {
    width: 3px; /* 線の太さ */
    height: 20px; /* 線の長さ */
    margin-left: -1.5px; /* 太さの半分を左にずらして中央揃え */
    margin-top: -10px; /* 長さの半分を上にずらして中央揃え */
}

/* --- アコーディオンが開いた時（aria-expanded="true"）のスタイル --- */

/* 縦棒を透明にして見えなくする */
.accordion-header[aria-expanded="true"] .plus-minus-icon::after {
    transform: scale(0); /* アニメーションしながら消える */
}

/* --- 色分け --- */
.accordion-item.item-1 .accordion-header {
    background-color: #580505; /* 茶色がかったゴールド */
}
.accordion-item.item-2 .accordion-header {
    background-color: #580505; /* 暗い赤色 */
}

/* アコーディオンコンテンツエリア */
.accordion-content {
    display: none; /* 初期状態は非表示 */
    padding: 30px 0; /* 上下のpaddingのみ */
}
.content-grid {
    display: grid;
    /* 2列のグリッドを作成 */
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 10vw;
    gap: 20px; /* グリッド間の隙間 */
}

/* カード（画像＋テキスト） */
.field-item-card {
    position: relative; /* テキストを重ねるための基準 */
    height: 100%;
    overflow: hidden;
    border: 4px solid #580505; /* 枠線 */
}
/* カードに重ねる半透明のオーバーレイ */
.field-item-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.53); /* テキストを読みやすくするための黒いオーバーレイ */
    z-index: 1;
}
.field-item-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.field-item-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2; /* オーバーレイより上 */
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 4px 4px 5px rgba(0, 0, 0, 0.5); /* 文字の影 */
    width: 100%; /* 中央揃えのため */
    text-align: center;
}
/* --- Reasons Section (選ばれる理由) --- */
.reasons-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* ::before疑似要素がはみ出さないように */
    /* アニメーションの初期状態と設定*/
    opacity: 0; /* 初期状態: 透明 */
    transition: opacity 1.5s ease-in-out; /* 1.5秒かけて変化 */
}
/* アニメーションの初期状態と設定*/
.reasons-section.is-in-view {
    opacity: 1;
}
/* セクションタイトル */
.reasons-section .section-title {
    color: #580505;
    font-size: 36px;
    font-family: serif;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}
.reasons-section .section-title::after {
    content: '';
    height: 1px;
    background-color: #580505;
    flex-grow: 1;
}
.reasons-list {
    padding: 0 20px;
    width: 90%;
    margin: 0 auto;
}

/* 各理由の項目 */
.reason-item {
    display: flex;
    align-items: flex-start; /* 上揃え */
    gap: 30px; /* 番号とテキストの隙間 */
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #8a7d6e;
}
.reasons-list > .reason-item:last-child {
    border-bottom: none; /* 最後の項目の線は消す */
    margin-bottom: 0;
}

/* 番号のボックス */
.reason-number-box {
    background-color: #580505;
    color: #fff;
    font-size: 64px;
    font-weight: bold;
    font-family: serif;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* 縮まないようにする */
    /* アニメーションの初期状態と設定*/
    opacity: 0; /* 初期状態: 透明 */
    transform: translateX(-30px); 
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
/* アニメーションの初期状態と設定*/
.reason-number-box.is-in-view {
    opacity: 1;
    transform: translateX(0); 
}

/* テキストコンテンツ */
.reason-content {
    flex-grow: 1; /* 残りの幅をすべて使う */
    /* アニメーションの初期状態と設定*/
    opacity: 0; /* 初期状態: 透明 */
    transform: translateX(30px); 
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
/* アニメーションの初期状態と設定*/
.reason-content.is-in-view {
    opacity: 1;
    transform: translateX(0); 
}
.reason-title {
    color: #333; /* 茶色がかったゴールド */
    margin-bottom: 15px;
}
.reason-description {
    color: #333;
}

/* --- FAQ Section --- */
.faq-section {
    color: #333;
    padding: 80px 0;
}
.faq-section .section-title {
    color: #580505;
    text-align: left;
    position: relative;
    padding-bottom: 15px;
    display: flex; /* Flexboxを有効にする */
    align-items: center; /* 子要素（テキストと線）を垂直方向の中央に揃える */
    gap: 1em; /* テキストと線の間の隙間を空ける */
}
.faq-section .section-title::after {
    content: '';
    height: 1px;
    background-color: #580505;
    flex-grow: 1; 
}
.faq-list-area {
    flex: 1;
    width: 90%;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    opacity: 0; /* 初期状態: 透明 */
    transform: translate(-20px,-20px); 
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
/* アニメーションの初期状態と設定*/
.faq-item.is-in-view {
    opacity: 1;
    transform: translate(0); 
}
.faq-question {
    padding: 15px 0;
    border-bottom: 1px solid #58050596;
    cursor: pointer;
    position: relative;
    padding-right: 30px; /* アイコンのスペース */
    display: flex;
    align-items: baseline;
    letter-spacing: 0;
}

.faq-question::after {
    transform: translateY(-50%) rotate(90deg);
}
.faq-question.active::after {
    transform: translateY(-50%) rotate(0deg);
}
.faq-question .q-mark {
    margin-right: 15px;
    flex-shrink: 0;
}
.faq-answer {
    display: none; /* 初期状態は非表示 */
    line-height: 1.8;
}
.faq-answer-content{
    display: flex;
}
.faq-answer .a-mark {
    margin-top: 10px;
    font-weight: 500;
    margin-right: 10px;
}
.faq-answer .a-text {
    flex: 1;
    margin-top: 10px;
}

/* --- Flow Section (ご相談の流れ) --- */
.flow-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* セクションタイトル */
.flow-section .section-title {
    color: #580505;
    font-size: 36px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}
.flow-section .section-title::after {
    content: '';
    height: 1px;
    background-color: #580505;
    flex-grow: 1;
}

/* 各ステップのボックス */
.flow-step-box {
    background-color: #fff1ee; /* 薄いピンク色 */
    padding: 40px;
    margin-bottom: 30px;
    text-align: center;
    opacity: 0; /* 初期状態: 透明 */
    transform: rotateY(60deg); 
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;
}
/* アニメーションの初期状態と設定*/
.flow-step-box.is-in-view {
    opacity: 1;
    transform: rotateY(0); 
}
.flow-steps-wrapper {
    width: 90%;
    margin: 0 auto;
}
.flow-steps-wrapper > .flow-step-box:last-child {
    margin-bottom: 0;
}

/* ステップのタイトル */
.flow-step-title {
    color: #580505;
    padding-bottom: 10px;
    border-bottom: 1px solid #8a7d6e;
    display: inline-block; /* 下線がテキスト幅に追従するように */
    margin-bottom: 20px;
}

/* ステップの説明文 */
.flow-step-description {
    color: #333;
    max-width: 600px; /* 横幅が広がりすぎないように */
    margin-left: auto;
    margin-right: auto;
}

/* --- 各ステップの追加要素 --- */
.flow-button-large {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    display: block;
    max-width: 400px;
    width: 100%;
    margin: 30px auto 0;
    padding: 20px;
    background-color: #580505;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
}
.flow-button-large:hover {
    opacity: 0.8;
}

.flow-phone-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-top: 25px;
    border-bottom: 2px solid #333;
    display: inline-block;
}

.flow-large-text {
    font-size: 42px;
    font-weight: bold;
    color: #580505;
    margin-top: 30px;
    letter-spacing: 0.1em;
}

/* --- Footer Contact --- */
.site-footer-contact {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 999;
    padding-right: 10px;
}
.footer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap:10px;
    padding: 10px ;
}
.contact-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}
.contact-text-icon {
    display: flex;
    align-items: center;
    background-color: #580505;
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.contact-text-icon img { height: 24px; margin-right: 8px; }
.contact-text-icon:hover { transform: scale(1.1); }
.contact-button img { width: 60%; height: auto; }
.js-modal-open span{
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
}

/* --- Form Modal --- */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none; /* JSでflexに変更 */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}
.form-modal.is-visible { display: flex; opacity: 1; }
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    line-height: 1;
    color: #888;
    background: none;
    border: none;
    cursor: pointer;
}
.modal-title { margin-bottom: 20px; text-align: center; }
/* Contact Form 7 Styles */
/* --- お問い合わせフォーム全体 --- */
.wpcf7-form {
    font-size: 16px;
}

/* --- 各入力項目のラッパー --- */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 20px;
}

/* --- 入力フィールド、セレクトボックス、テキストエリア共通 --- */
.wpcf7-form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* 崩れ防止 */
}

/* --- テキストエリアの高さ --- */
textarea.wpcf7-form-control {
    height: 120px;
}

/* --- 送信ボタン --- */
.wpcf7-submit {
    width: 100%;
    padding: 15px;
    background-color: #580505;  
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: opacity 0.3s;
}

/* --- 送信ボタン（ホバー時） --- */
.wpcf7-submit:hover {
    opacity: 0.8;
}

/* === ▼ レイアウト崩れ修正 ▼ === */

/* ラジオボタンとチェックボックスの項目を横並びに */
.wpcf7-form .wpcf7-radio .wpcf7-list-item {
    display: inline-block; /* 横並びにする */
    margin: 0 20px 0 0;  /* 右側に余白を設ける */
}

.wpcf7-form-control .wpcf7-radio {
    padding: 3px;
}

/* ラジオボタンとラベルの縦位置を中央に揃える */
.wpcf7-form .wpcf7-radio .wpcf7-list-item label {
    display: flex;
    align-items: center;
}

/* --- Responsive (SP) --- */
@media (max-width: 900px) {
    body::before {
        width: 10px;
    }
    .lp-section { padding: 60px 0; }
    .section-container {
        width: 100%;
    }
    .section-title { font-size: 28px; }
    .text2 {
        font-size: 18px;
        line-height: 1.6;
    }
    .text3 {
        font-size: 15px;
        line-height: 1.6;
        letter-spacing: 0.1em;
    }
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 80vh;
    }

    /* --- Header --- */
    .site-header { padding: 10px 15px; }

    /*--- Hero ---*/
    .hero-section {
        height: 80vh;
        padding: 0;   
    }
    .bottom-area {
        bottom: 20%;
        transform: translateY(40%);
    }
    .hero-information {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    .name {
        line-height: 1;
    }
    .hero-name-ja {
        font-size: 36px;
    }
    .hero-name-en{
        letter-spacing: 0.1rem;
    }
    
    /* --- greetings --- */ 
    @media (max-width: 900px) {
        .greetings-section {
            padding: 60px 0;
        }
        .greetings-section::before {
            width: 10%;
            max-width: 40px;
        }
        .greetings-section .section-title {
            font-size: 28px;
            margin-bottom: 30px;
        }

         /* スマホではGridレイアウトを解除し、シンプルなブロック表示に戻す */
        .greetings-float-layout {
            display: block; /* Gridを解除 */
        }

        .greetings-image-wrapper {
            display: none;
        }

        .greetings-text-wrapper .text-paragraph {
            font-size: 15px;
            margin-bottom: 1.5em;
        }
    }

    /* --- policy Responsive --- */
    @media (max-width: 900px) {
        .policy-container {
            flex-direction: column;
            gap: 30px;
            overflow: hidden;
            padding: 0 40px;
        }
        .policy-title-area {
            flex: auto;
            min-width: 0;
            margin-bottom: 40px;
        }
        .policy-section .section-title {
            font-size: 28px;
            text-align: center;
            padding-bottom: 0;
            margin-bottom: 0;
        }
        .policy-list-area {
            text-align: left;
        }
        .policy-copy {
            font-size: 17px;
        }
        .br-pc {
            display: none;
        }
    }
    /* --- Career --- */ 
    @media (max-width: 900px) {
        .career-section {
            padding: 60px 0;
        }
        .career-section .section-title {
            font-size: 28px;
            margin-bottom: 30px;
        }
        .career-section .career-container {
            width: 100%;
            padding: 0 40px;
        }
        .career-content-wrapper {
            flex-direction: column; /* 縦積みに変更 */
            align-items: center;    /* 中央揃え */
            gap: 40px;
        }
        .career-history {
            width: 100%;
            order: 2; /* 表示順を画像の下にする */
        }
        .career-inset-image {
            flex-basis: auto; /* 幅指定をリセット */
            width: 100%;
            max-width: 350px;
            order: 2; /* 表示順をリストの上にする */
        }
        .career-inset-image::after {
            right: -15px;
            bottom: -15px;
        }
        .career-history li {
            font-size: 15px;
            padding: 12px 0;
        }
    }
    
    /* --- Accordion Responsive --- */
    @media (max-width: 900px) {
        .fields-section {
            padding: 60px 0; /* スマホでは左右にも余白を */
        }
        .section-container {
            padding: 0 40px;
            width: 100%;
            margin: 0 auto;
        }
        .fields-section .section-title {
            font-size: 28px;
            margin-bottom: 30px;
        }
        .accordion-header {
            padding: 15px 20px;
        }
        .accordion-title {
            font-size: 18px;
        }
        .accordion-item {
            padding: 0;
        }
        .content-grid {
            /* 1列にする */
            grid-template-columns: 1fr;
            gap: 15px;
        }
        .field-item-title {
            font-size: 16px;
        }
    }

        /* --- reasons Responsive --- */
    @media (max-width: 900px) {
        .reasons-section {
            padding: 60px 0;
        }
        .reasons-section::before {
            width: 10%;
            max-width: 40px;
        }
        .reasons-section .section-title {
            font-size: 28px;
            margin-bottom: 40px;
        }
        .reasons-list {
            width: 100%;
        }
        .reason-item {
            gap: 20px;
        }
        .reason-number-box {
            width: 60px;
            height: 60px;
            font-size: 36px;
        }
    }

    /* --- FAQ Responsive --- */
    @media (max-width: 900px) {
        .faq-container {
            flex-direction: column;
            gap: 30px;
            overflow: hidden;
        }
        .faq-title-area {
            flex: auto;
            min-width: 0;
            margin-bottom: 30px;
        }
        .faq-section .section-title {
            font-size: 28px;
            text-align: center;
            padding-bottom: 0;
            margin-bottom: 0;
        }
    }

        /* --- Flow Responsive --- */
    @media (max-width: 900px) {
        .flow-section {
            padding: 60px 0;
        }
        .flow-section::before {
            width: 10%;
            max-width: 40px;
        }
        .flow-section .section-title {
            font-size: 28px;
        }
        .flow-step-box {
            padding: 30px 20px;
        }
        .flow-button-large {
            font-size: 18px;
            padding: 15px;
        }
        .flow-phone-number {
            font-size: 24px;
        }
        .flow-large-text {
            font-size: 28px;
        }
    }

    /* --- Footer --- */
    .footer-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap:10px;
        padding: 10px 0;
    }
    .contact-button-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    .contact-button-wrapper span {
        font-size: 12px;
    }
    .contact-text-icon {
        display: flex;
        align-items: center;
        background: #580505;
        padding: 10px 20px;
        border-radius: 30px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        border: none;
        cursor: pointer;
        transition: transform 0.2s;
    }
    #form-modal-open-button span{
        font-family: 'Noto Serif JP', serif;
        font-size: 12px;
    }
    .contact-text-icon img { height: 24px; margin-right: 8px; }
    .contact-text-icon:hover { transform: scale(1.1); }
    .contact-button img { width: 60%; height: auto; }
}
