.hero {
  background-color: var(--primary-color);
  color: var(--heading-color);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('../images/top-image.jpg');
  background-color: rgba(13, 71, 161, 0.8); /* ディープブルーのオーバーレイ */
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 3;
  width: 100%;
}

@keyframes morph {
  0% {
    border-radius: 45% 55% 60% 40% / 70% 50% 50% 30%;
  }
  50% {
    border-radius: 30% 70% 40% 60% / 50% 60% 40% 50%;
  }
  100% {
    border-radius: 45% 55% 60% 40% / 70% 50% 50% 30%;
  }
}

.heroTitle {
  font-size: 3.5rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
  text-shadow: none;
}

.heroHighlight {
  color: var(--accent-color-2);
}

.heroSubtitle {
  font-size: 1.2rem;
  font-family: var(--jp-sans);
  color: var(--heading-color);
  max-width: 600px;
  margin: 0;
  text-align: left;
  text-shadow: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.heroSubtitle.fadeIn {
  opacity: 1;
  transform: translateY(0);
}

.serviceGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.serviceCard {
  background-color: var(--white-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--accent-color-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.serviceCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.serviceCardHeader {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--accent-color-1);
}

.serviceCardHeader h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.serviceCardIcon {
  width: 48px;
  height: 48px;
  background-color: var(--heading-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.serviceCardContent {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.serviceCardContent p {
  flex-grow: 1;
  font-size: 1rem;
  line-height: 2;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.serviceCardLink {
  margin-top: auto;
  padding: 0.5rem 1rem;
  font-family: var(--jp-sans);
  font-weight: 700;
  color: var(--heading-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  transition: all 0.2s;
  border: 2px solid var(--heading-color);
  background: transparent;
  text-decoration: none;
  border-radius: 4px;
}

.serviceCardLink:hover {
  color: white;
  background: var(--heading-color);
  text-decoration: none;
}

.recommendationsGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.recommendationItem {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-family: var(--font-noto-sans-jp), sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: #ffff00;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.recommendationIcon {
  color: var(--accent-color-1);
  flex-shrink: 0;
  margin-top: 5px;
}

/* DIY Help Section */
.diyHelpSection {
  background-color: #eaf2f8;
}

.diyHelpSection p {
  max-width: 700px;
  margin-left: 0;
  margin-right: 0;
}

.diyHelpSection .btn-primary {
  background-color: var(--accent-color-3);
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.diyHelpSection .btn-primary:hover {
  background-color: #2980b9;
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.centeredContainer {
  max-width: 700px;
  margin: 0 auto;
}

.subtitleParagraph {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.heroTextBlock {
  display: block;
  background: var(--heading-color);
  color: #fff;
  border-radius: 0;
  padding: 0.1em 0.1em 0.1em 0.1em;
  margin-bottom: 0.1em;
  width: fit-content;
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.1;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.heroTextBlock.slideIn {
  transform: translateX(0);
  opacity: 1;
  background: rgba(255, 160, 0, 0.9);
}

.heroTextBlockAccent {
  background: var(--accent-color-2);
  color: #fff;
}

.heroTextBox {
  width: 95%;
  margin: 0 auto;
  text-align: left;
}

.heroTextBox h1,
.heroTextBox p {
  text-align: left;
}

.heroTextBoxNote {
  display: inline-block;
  background: rgba(30, 58, 138, 0.8);
  color: #fff;
  padding: 0.7em 0.3em;
  margin-top: 1.2em;
  font-size: 1.1em;
  line-height: 1.5;
}

.emphasis {
  text-emphasis: dot;
  text-emphasis-position: over;
}

.diagonalStripeBg {
  background: repeating-linear-gradient(
    45deg,
    var(--background-color),
    var(--background-color) 10px,
    rgba(30, 58, 138, 0.03) 10px,
    rgba(30, 58, 138, 0.03) 20px
  );
}

.whiteBg {
  background-color: var(--white-color);
}

.troubleDigestSection {
  background-color: var(--background-color);
}

.troubleDigestIntro {
  margin-bottom: 2rem;
}

.simpleLink {
  color: #333;
  text-decoration: underline;
  text-decoration-thickness: 2.5px;
  text-underline-offset: 4px;
}

.troubleDigestButtonContainerRight {
  text-align: right;
  margin-top: 2rem;
}

.simpleLinkArrow {
  font-size: 1.1em;
  vertical-align: middle;
}

.serviceButtonContainer {
  text-align: center;
  margin-top: 3rem;
}

.serviceButton {
  background-color: var(--heading-color) !important;
  min-width: 640px;
  padding-left: 5em;
  padding-right: 5em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
}

.arrowIcon {
  transition: transform 0.2s ease;
}

.serviceButton:hover .arrowIcon {
  transform: translateX(3px);
}

/* CTA Section */

@media (max-width: 992px) {
  .heroTitle {
    font-size: 2.5rem;
  }
  
  .serviceGrid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 40px 0;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 70px;
  }
  
  .heroTitle {
    font-size: 2rem;
  }
  
  .heroSubtitle {
    font-size: 1rem;
  }
  .heroTextBoxNote {
    font-size: 0.9rem;
  }
  
  .serviceGrid {
    grid-template-columns: 1fr;
  }
  
  .serviceCardContent {
    padding: 20px;
  }
  
  .serviceCardContent p {
    font-size: 1rem;
  }
  
  .recommendationsGrid {
    gap: 15px;
  }
  
  .recommendationItem {
    font-size: 1rem;
  }
  
  .extraInfoList li {
    margin: 0.05em 0;
  }
  
  .extraInfoList li h4 {
    font-size: 1.1em;
    gap: 3px;
  }
  
  .extraInfoList li p {
    padding: 12px 20px;
  }
  
  .priceCard,
  .priceCardDetails {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .priceCardDetails {
    width: 100%;
  }
  
  .priceAmount {
    text-align: left;
  }
  
  .expertGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .serviceGrid {
    gap: 20px;
  }
  
  .serviceCardContent {
    padding: 15px;
  }
  
  .serviceCardContent h3 {
    font-size: 1rem;
  }
  
  .serviceCardContent p {
    font-size: 0.95rem;
  }
  
  .expertGrid {
    gap: 20px;
  }
  
  .expertCardContent {
    padding: 20px;
  }
  
  .centeredContainer {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .serviceButton {
    min-width: 90vw !important;
    padding-left: 1.2em !important;
    padding-right: 1.2em !important;
    font-size: 1rem !important;
  }
}

@media (min-width: 992px) {
  .recommendationsWrapper {
    display: flex;
    justify-content: center;
  }
  .recommendationsGrid {
    margin-left: auto;
    margin-right: auto;
  }
}
  

/* Pricing Section */
.subheading {
  font-size: 1.5rem;
  font-family: var(--jp-sans);
  font-weight: 700;
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 1rem;
}

.priceGrid {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.priceCard {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--white-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem;
  gap: 1.5rem;
  border-left-width: 10px;
}

.priceCard.accent-1 {
  border-left-color: var(--accent-color-1);
}
.priceCard.accent-2 {
  border-left-color: var(--accent-color-2);
}
.priceCard.accent-3 {
  border-left-color: var(--accent-color-3);
}

.priceCardTitle {
  flex: 1 1 35%;
}
.priceCardTitle h4 {
  font-size: 1.2rem;
  color: var(--heading-color);
  margin: 0;
}

.priceCardDetails {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.priceAmount {
  font-family: var(--jp-sans);
  font-weight: 700;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.priceCard.accent-1 .priceAmount {
  color: var(--accent-color-1);
}
.priceCard.accent-2 .priceAmount {
  color: var(--accent-color-2);
}
.priceCard.accent-3 .priceAmount {
  color: var(--accent-color-3);
}

.priceAmount .priceLabel {
  font-size: 1rem;
  color: var(--text-color);
  display: block;
  font-weight: 400;
}

.priceAmount .priceUnit {
  font-size: 1.2rem;
  margin-left: 0.25rem;
}

.priceCard p {
  font-size: 1.1rem;
  line-height: 2;
  margin: 0;
}

.priceNote {
  text-align: left;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1.5rem;
}

/* Extra Info Section */
.extraInfoSection {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-color);
}

.extraInfoList {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.extraInfoList li {
  margin: 0.1em 0;
}
.extraInfoList li h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  padding: 4px;
  text-align: center;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  justify-content: center;
  position: relative;
}

.extraInfoList li h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: red;
  border-radius: 2px;
}
.extraInfoList li p {
  padding: 15px 30px;
  margin: 0;
}

.extraInfoNote {
  text-align: left;
  margin-top: 70px;
  margin-bottom: 0;
  padding: 20px;
}

/* Expert Services Section */
.expertSection {
  position: relative;
  overflow: hidden;
}

.expertGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.expertCard {
  background-color: var(--white-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--heading-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.expertCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.expertCardHeader {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--heading-color);
}

.expertCardHeader h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.expertCardIcon {
  width: 48px;
  height: 48px;
  background-color: var(--heading-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  position: relative;
}

/* 各専門サービスごとのアイコン設定 */
.permitSupport .expertCardIcon::before {
  content: "\f0f3"; /* fa-bell */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.subsidySupport .expertCardIcon::before {
  content: "\f3d1"; /* fa-hand-holding-usd */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
}

.expertCardContent {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: left;
}

.expertCardContent p {
  flex-grow: 1;
  font-size: 1.1rem;
  line-height: 2;
  margin-bottom: 2rem;
}

.expertCardLink {
  margin-top: auto;
  padding: 0.5rem 1rem;
  font-family: var(--jp-sans);
  font-weight: 700;
  color: var(--heading-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  transition: all 0.2s;
  border: 2px solid var(--heading-color);
  background: transparent;
  text-decoration: none;
  border-radius: 4px;
}

.expertCardLink:hover {
  color: white;
  background: var(--heading-color);
  text-decoration: none;
}

.buttonContainer {
  text-align: center;
  margin-top: 3rem;
}

/* Additional responsive styles for new sections */
@media (max-width: 768px) {
  .extraInfoList li {
    margin: 0.05em 0;
  }
  .extraInfoList li p {
    padding: 12px 20px;
  }
  
  .priceCard,
  .priceCardDetails {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .priceCardDetails {
    width: 100%;
  }
  .priceAmount {
    text-align: left;
  }
  
  .expertGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .expertGrid {
    gap: 20px;
  }
  
  .expertCardContent {
    padding: 20px;
  }
  
  .centeredContainer {
    text-align: left;
  }
} 

/* お問い合わせ停止セクション */
.contact-stopped-section {
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
  padding: 3rem 0;
}

.contact-stopped-section .contact-stopped-notice {
  width: 100%;
  margin: 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #feb2b2;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-stopped-section .notice-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-stopped-section i {
  font-size: 3rem;
  color: #e53e3e;
  margin-bottom: 1rem;
  display: block;
}

.contact-stopped-section h3 {
  font-size: 1.5rem;
  color: #c53030;
  margin-bottom: 1rem;
  font-weight: 700;
}

.contact-stopped-section p {
  font-size: 1.1rem;
  color: #742a2a;
  line-height: 1.6;
  margin: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .contact-stopped-section {
    padding: 2rem 0;
  }
  
  .contact-stopped-section .contact-stopped-notice {
    padding: 1.5rem;
  }
  
  .contact-stopped-section i {
    font-size: 2.5rem;
  }
  
  .contact-stopped-section h3 {
    font-size: 1.3rem;
  }
  
  .contact-stopped-section p {
    font-size: 1rem;
  }
} 