/* variables */
:root {
  /* カラーパレット */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-accent: #4b9fff;
  --color-main-light: #e5f0ff;
  --color-main-lighter: #f5f8ff;
  --color-sub-dark: #003b90;
  --color-sub-darker: #002b6b;

  /* フォントサイズ */
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-midiam: 18px;
  --font-size-large: 20px;
  --font-size-xlarge: 24px;

  /* スペーシング */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* ブレークポイント */
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;

  /* コンテナー幅 */
  --container-max-width: 1140px;

  /* トランジション */
  --transition-base: all 0.3s ease;

  /* ボーダーラディウス */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
}

/* reset.css */

.column-full-wide .content-in {
  width: 100% !important;
}

#main,
#content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ページ共通 */

.content-width {
  width: 76%;
}

.home-container {
  padding-bottom: 36px;
  width: 100%;
  color: var(--color-text);
}

.inner-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0px 80px 0px;
}

/* .hero-section {
  min-height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('path-to-your-image.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-description {
  font-size: 1.5rem;
  margin-bottom: 2rem;
} */

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: #1a56db;
  color: white;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #1e40af;
}

/* 重要なお知らせ */
.important-info {
  width: 100%; /* 横幅いっぱい */
  background-color: #f5f8ff; /* 一番薄い青の背景色 */
  border-left: 5px solid #4b9fff; /* メインアクセントカラーの左ボーダー */
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 軽い影をつける */
}

.important-info i {
  color: #003b90; /* サブカラー（濃い青）のアイコン */
  font-size: 24px;
  margin-right: 15px;
}

.important-info p {
  margin: 0;
  color: #333333; /* テキストカラー */
  font-weight: 600; /* 少し太く */
  font-size: 16px;
  line-height: 1.5;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  .important-info {
    padding: 12px 15px;
    margin: 0 0 20px 0;
  }

  .important-info i {
    font-size: 20px;
    margin-right: 18px;
  }

  .important-info p {
    font-size: 14px;
  }
}

/* 特徴セクション */

.promise {
  background-color: var(--color-main-light);
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 40px;
  text-align: left;
}

/* Promise Cards */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.promise-card {
  background-color: #ffffff;
  border: 2px solid #4b9fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.promise-card:hover {
  transform: translateY(-5px);
}

.promise-icon {
  width: 80px;
  height: 80px;
  background-color: #e5f0ff;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-text {
  color: #003b90;
  font-size: 24px;
  font-weight: bold;
}

.promise-title {
  font-size: 20px;
  font-weight: bold;
  color: #003b90;
  margin-bottom: 15px;
}

.promise-description {
  font-size: 16px;
  color: #666666;
  line-height: 1.6;
}

/* Approach Section */
.approach-section {
  background-color: #f5f8ff;
  border-radius: 8px;
  padding: 40px;
  margin-top: 40px;
}

.approach-title {
  font-size: 24px;
  font-weight: bold;
  color: #003b90;
  margin-bottom: 30px;
}

.step-container {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 250px;
  min-height: 5rem;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: #4b9fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content {
  flex-grow: 1;
}

.step-title {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 5px;
}

.step-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.4;
}

.step-arrow {
  width: 30px;
  height: 30px;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%234B9FFF"><path d="M8 5v14l11-7z"/></svg>')
    no-repeat center;
  margin: 10px;
  flex-shrink: 0;
  transform: rotate(90deg);
}

.approach-message {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5f0ff;
}

.approach-message p {
  font-size: 16px;
  color: #333333;
  line-height: 1.8;
  margin-bottom: 15px;
}

.free-label {
  display: inline-block;
  background-color: #4b9fff;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
  .promise-grid {
    grid-template-columns: 1fr;
  }

  .step-container {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 100%;
    margin-bottom: 20px;
  }

  .step-arrow {
    margin: 10px 0;
  }

  .approach-message br {
    display: none;
  }
}

/* 取扱分野 */

/* サービス紹介部分 */
.service-intro {
  text-align: center;
  margin-bottom: 40px;
  background-color: #e5f0ff;
  padding: 25px;
  border-radius: 8px;
}

.service-main-intro {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.highlight {
  color: #003b90;
  font-weight: bold;
  font-size: 110%;
}

.intro-button {
  display: inline-block;
  background-color: #fff;
  color: #003b90;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  border: 2px solid #4b9fff;
  transition: all 0.3s ease;
}

.intro-button:hover {
  background-color: #4b9fff;
  color: #fff;
}

.services {
  background-color: #ffffff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.service-card {
  border: 2px solid #4b9fff;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-content {
  flex-grow: 1;
}

.service-title {
  font-size: 24px;
  font-weight: bold;
  color: #003b90;
  margin-bottom: 20px;
}

.service-description {
  font-size: 16px;
  color: #666666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.service-list li {
  font-size: 14px;
  color: #333333;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: #4b9fff;
}

.service-button {
  display: inline-block;
  background-color: #003b90;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 0;
  width: 100%;
  text-align: center;
  border-radius: 25px;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.service-button:hover {
  background-color: #002b6b;
}

/* お問い合わせ部分 */
.service-contact-section {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 43, 107, 0.1);
  text-align: center;
}

.service-contact-title {
  color: #002b6b;
  font-size: 24px;
  margin-bottom: 20px;
}

.service-contact-description {
  color: #333333;
  margin-bottom: 25px;
  line-height: 1.6;
}

.service-contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.service-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.service-contact-form {
  background-color: #4b9fff;
  color: #fff;
}

.service-contact-form:hover {
  background-color: #003b90;
}

.service-contact-line {
  background-color: #06c755;
  color: #fff;
}

.service-contact-button .fa-line {
  margin-right: 8px;
}

.service-contact-line:hover {
  background-color: #05a847;
}

.service-contact-button:hover {
  color: #fff;
}

.additional-services {
  background-color: #f5f8ff;
  border-radius: 8px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.additional-services p {
  font-size: 16px;
  color: #333333;
  margin: 0;
  flex: 1;
}

.more-button {
  background-color: #003b90;
  color: #ffffff;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-size: 16px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.more-button:hover {
  background-color: #002b6b;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .additional-services {
    flex-direction: column;
    text-align: center;
  }

  .additional-services p {
    margin-bottom: 20px;
  }

  .service-button,
  .more-button {
    width: 100%;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-button,
  .more-button {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promise-card {
    transition: none;
  }
}

/* ハイコントラストモード対応 */
@media (forced-colors: active) {
  .service-card {
    border: 2px solid CanvasText;
  }

  .service-button,
  .more-button {
    border: 1px solid ButtonText;
  }
}

@media (forced-colors: active) {
  .promise-card {
    border: 2px solid CanvasText;
  }

  .step-number {
    border: 1px solid ButtonText;
  }
}

/* 司法書士紹介セクションのスタイル */
.staff-section {
  background-color: #f8f9fa;
}

.staff-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.staff-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.profile-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-header {
  border-bottom: 2px solid #2c5282;
  padding-bottom: 16px;
}

.position {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 4px;
}

.name {
  font-size: 1.8rem;
  font-weight: bold;
  color: #2d3748;
}

.qualification-list h4,
.profile-text h4 {
  font-size: 1.1rem;
  color: #2c5282;
  margin-bottom: 12px;
  font-weight: bold;
}

.qualification-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding: 0;
}

.qualification-list li {
  background: #ebf4ff;
  color: #2c5282;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.profile-text p {
  line-height: 1.8;
  color: #4a5568;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .staff-profile {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px;
  }

  .profile-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* お知らせセクション */
.news {
  background-color: #ffffff;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.news-header > .section-title {
  margin: 0;
}

.news-archive-link {
  display: inline-block;
  padding: 8px 24px;
  color: #003b90;
  text-decoration: none;
  border: 2px solid #003b90;
  border-radius: 20px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.news-archive-link:hover {
  background-color: #003b90;
  color: #ffffff;
}

.news-list {
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 43, 107, 0.1);
  border-radius: 8px;
}

.news-item {
  padding: 20px;
  border-bottom: 1px solid #e5f0ff;
  transition: background-color 0.3s ease;
}

.news-item:hover {
  background-color: #f5f8ff;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.news-date {
  font-size: 14px;
  color: #666666;
}

.news-category {
  display: inline-block;
  padding: 4px 12px;
  background-color: #4b9fff;
  color: #ffffff;
  font-size: 12px;
  border-radius: 12px;
}

.news-link {
  text-decoration: none;
  color: inherit;
}

.news-title {
  font-size: 16px;
  color: #333333;
  margin: 0;
  transition: color 0.3s ease;
}

.news-link:hover .news-title {
  color: #003b90;
}

.no-news {
  text-align: center;
  padding: 40px;
  color: #666666;
  background-color: #f5f8ff;
  border-radius: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-title {
    font-size: 15px;
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .news-item,
  .news-archive-link,
  .news-title {
    transition: none;
  }
}

/* ハイコントラストモード対応 */
@media (forced-colors: active) {
  .news-category {
    border: 1px solid ButtonText;
  }

  .news-item {
    border-bottom: 1px solid CanvasText;
  }
}

/* お問い合わせ */
.contact {
  background-color: #f5f8ff;
}

.contact-lead {
  font-size: 18px;
  color: #666666;
  margin-bottom: 50px;
  line-height: 1.6;
}

/* Contact Methods */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-card {
  padding: 40px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-card {
  background-color: #ffffff;
  border: 2px solid #4b9fff;
}

.email-card {
  background-color: #003b90;
  color: #ffffff;
}

.card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.phone-card .card-title {
  color: #003b90;
}

.email-card .card-title {
  color: #ffffff;
}

.phone-number {
  font-size: 32px;
  font-weight: bold;
  color: #003b90;
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

.business-hours {
  font-size: 16px;
  color: #666666;
}

.email-message {
  font-size: 16px;
  margin-bottom: 20px;
}

.contact-button-wrapper {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-button {
  display: inline-block;
  background-color: #ffffff;
  color: #003b90;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #e5f0ff;
  transform: translateY(-2px);
}

.contact-button-line {
  background-color: #06c755;
  color: #fff;
}

.contact-button-line:hover {
  background-color: #05a847;
  color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact {
    padding: 60px 0;
  }

  .full-width {
    grid-column: span 1;
  }

  .contact-form-container {
    padding: 30px 20px;
  }

  .phone-number {
    font-size: 28px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .contact-button,
  .submit-button {
    transition: none;
  }
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #4b9fff;
  outline-offset: 2px;
}
