/* ▼ 基本設定（フォント・背景） */
body.about-page {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
  background: url("http://asagi-tax.jp.testrs.jp/002/wp-content/uploads/2025/07/trimmed_top_bg_16_9.png") no-repeat center center / cover;
}

/* ▼ 共通ヘッダー（TOPと統一） */
.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 12px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Zen Old Mincho", serif;
}

.custom-header-left {
  display: flex;
  align-items: center;
  font-family: 'Zen Old Mincho', serif;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.2;
  color: #333;
}

.custom-header-left::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url('http://asagi-tax.jp.testrs.jp/002/wp-content/uploads/2025/06/cropped-Asagi_zeirishi_logoDesign-A.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
}

.custom-header-right {
  padding-right: 38px;
}

.custom-header-right a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.2s ease;
}

.custom-header-right a:first-child {
  margin-left: 0;
}

.custom-header-right a:hover {
  color: #333;
  text-decoration: underline;
}

.custom-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.custom-header-right a.sns-icon {
  margin-left: 12px;
}

.custom-header-right a.sns-icon img {
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.custom-header-right a.sns-icon:hover img {
  transform: scale(1.1);
  opacity: 0.8;
}


/* ▼ 中身エリア */
.about-page .transparent-background-content {
  max-width: 1080px;
  margin: 0 auto;
}

/* ▼ 見出し */
.about-page .about-heading h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 20px;
  font-family: "Zen Old Mincho", serif;
}

.about-page .about-heading p {
  font-size: 1rem;
  text-align: center;
  line-height: 1.8;
  margin-bottom: 40px;
  font-family: 'Noto Sans JP', sans-serif;
}

.about-intro {
  text-align: center;
}


/* ▼ プロフィール行（横並び） */
.profile-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 48px;
  margin-top: 40px;
  margin-bottom: 40px;
  max-width: 1080px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ▼ プロフィールカード */
.profile-box {
  flex: 1 1 400px;
  max-width: 480px;
  min-width: 300px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ▼ プロフィール画像 */
.profile-box img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ▼ 名前 */
.profile-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-family: 'Zen Old Mincho', serif;
}

/* ▼ 説明文 */
.profile-text {
  text-align: center;
  margin-top: 12px;
  line-height: 1.8;
  font-size: 15px;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
}

.profile-text p {
  margin: 0 0 8px;
  margin-bottom: 10px !important;
}

/* ▼ 不要なbefore削除 */
.profile-box::before {
  content: none !important;
  display: none !important;
}

/* ▼ 住所セクション */
.about-page .office-info {
  margin-top: 80px;
  padding-top: 20px;
  margin-bottom: 60px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

/* ▼ 全体余白と読みやすさ */
.about-wrapper {
  padding: 20px 5% 80px;
  font-size: 18px;
  line-height: 1.9;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ▼ モバイル対応 */
@media screen and (max-width: 768px) {
  .profile-row {
    flex-direction: column;
    align-items: center;
  }

  .profile-box {
    width: 100%;
    max-width: 90%;
  }
}

/* ▼ .home の影響を打ち消す */
body:not(.home) .custom-header a {
  font-weight: 400 !important;
}

@media screen and (max-width: 768px) {
  .custom-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .custom-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }

  .custom-header-left img {
    height: 32px;
  }

  .custom-header-left span {
    font-size: 16px !important;
  }

  .custom-header-right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 20px; /* 少し余裕持たせる */
    width: 100%;
    font-size: 14px !important;
  }

  .custom-header-right a {
    font-size: 14px !important;
    padding: 4px 8px;
    white-space: nowrap;
  }
}


