/* 共通 */

:root {
  --color-primary: #3FA400;
  --color-primary-dark: #2C7300;
  --color-accent: #E68300;
  --color-accent-dark: #AC6200;
  --color-pink: #E83E82;
  --color-sub: #A1D481;
  --color-white: #fff;
  --color-text: #333;
  --color-text-light: #777;
  --color-text-muted: #969696;
  --color-border: #E8E8E8;
  --color-border-soft: #E3E3E3;
  --color-bg: #f4f4f4;
  --color-bg-soft: #F4FAEF;
  --color-bg-light: #F0F8EA;
  --color-bg-gray: #f0f0f0;
  --color-gray: #bbb;
  --color-highlight: #FDFF9C;
  --color-gold: #9B8741;
  --color-shadow: rgba(0, 0, 0, 0.16);
}


/* セクション */
.section {
  padding: 48px 0;
}

.faq-inner,
.news-inner,
.movie-inner,
.about-inner,
.flow-inner,
.column-inner,
.blog-inner {
  width: 1000px;
}

.reason-inner {
  width: 1064px;
}

.specialty-inner {
  width: 1120px;
}

.service-inner,
.access-inner {
  width: 1160px;
}

/* お問い合わせ下 */
.about-section, .column-section, .access-section {
  margin-top: 160px;
}

.column-section .article-list,
.blog-section .article-list {
  margin: 24px 0 32px;
}

.column-title .sub-text, .blog-title .sub-text {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
}



/* mv */
.mv-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  height: 500px;
  display: flex;
  align-items: center;
}

.mv-text h2 {
  word-break: break-word;
  font-size: 52px;
  letter-spacing: 5.2px;
  line-height: 140%;
  white-space: nowrap;
}

.mv-text h2 span {
  color: var(--color-primary);
}

.mv-sub-text {
  font-size: 18px;
  line-height: 170%;
  margin-top: 16px;
  font-weight: 700;
}

.mv-sub-text span {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 20px;
  padding: 0 14px 2px 14px;
  border-radius: 40px;
  margin-right: 8px;
  font-weight: 100;
}

.mv-image {
  position: absolute;
  top: 0;
  right: -12%;
  width: 100%;
  height: 500px;
  object-fit: cover;
  z-index: -1;
}

.mv-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}


/* News */
.section.news-section {
  margin: 8px auto;
}

.news-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 112px;
}

.section-title.news-title {
  text-align: left;
  width: 156px;
}

.section-title.news-title h2 {
  margin-bottom: 70px;
}

.news-list {
  width: 100%;
  max-width: 726px;
}

.news-list li a {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.news-list li span {
  color: var(--color-text-muted);
  font-size: 14px;
}

.news-list li p {
  font-size: 15px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 得意分野 */
.specialty-checks h4 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 150%;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.specialty-checks ul {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.specialty-checks li {
  width: 500px;
  padding: 24px 24px 24px 56px;
  background: var(--color-white);
  position: relative;
  font-size: 18px;
  font-weight: 500;
  line-height: 170%;
}

.specialty-checks li::before {
  content: "";
  position: absolute;
  top: 30px;
  left: 24px;
  width: 20px;
  height: 20px;
  background: url(../images/icon-check.svg) no-repeat center;
}

/* 事務所紹介 */
.video {
  margin-top: 32px;
}


/* about */
.profile {
  margin-top: 32px;
  display: flex;
  gap: 24px;
  flex-direction: column;
}

.profile-card {
  display: flex;
  gap: 56px;
}

.profile-card img {
  width: 264px;
  height: auto;
}

.profile-content span {
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
}

.profile-content h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 150%;
  margin-top: 4px;
}

.profile-content .name {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0.8px;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.profile-text {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.profile-text p {
  font-size: 15px;
  font-weight: 400;
  line-height: 200%; 
}


/* service */
.service-section {
  background: linear-gradient(to bottom, var(--color-bg-light) 0%, var(--color-bg-light) 50%, var(--color-white) 100%);
  padding: 32px 0 48px;
}

.service-item {
  display: flex;
}

.service-item img {
  width: 640px;
  height: 335px;
}

.service-text-box {
  margin-left: -70px;
  margin-top: 80px;
  padding: 40px 40px 24px;
  max-width: 591px;
  background: var(--color-white);
  border-radius: 8px;
}

.service-text-box img {
  width: 352px;
  height: 66px;
}

.service-text-box .logo-text {
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 160%; 
  margin: 16px 0 12px;
}

.service-text-box .service-desc {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  font-size: 16px;
  font-weight: 500;
  line-height: 180%;
}

.service-text-box .service-desc span {
  color: var(--color-primary);
}

.service-title {
  margin: 72px auto 32px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.service-cards .card {
  box-shadow: 0 8px 24px 0 var(--color-shadow);
  border-radius: 8px;
}

.service-cards .card h3 {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  padding: 8px;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 180%;
  letter-spacing: 1px;
  border-radius: 8px 8px 0 0;
}

.service-cards .card .card-body {
  padding: 16px;
  font-size: 15px;
  font-weight: 400;
  line-height: 170%;
  background: var(--color-white);
  border-radius: 0 0 8px 8px;
}


/* flow */
.flow-section {
  background: var(--color-bg);
}

.step {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-card {
  display: flex;
  gap: 40px;
  padding: 24px 32px;
  background: var(--color-white);
  border-radius: 8px;
  align-items: center;
  justify-content: space-between; 
  position: relative;
}

.step-card:not(:last-child):before {
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 16px solid transparent;
  border-left: 16px solid transparent;
  border-top: 16px solid var(--color-gray);
  border-bottom: 0;
  position: absolute;
  content: "";
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
}

.step-card .step-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.step-card .step-left img {
  width: 126px;
  height: 64px;
}

.step-card .step-left h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 150%; 
}

.step-card .step-right {
  max-width: 594px;
  width: 594px;
}

.step-card .step-right p {
  font-size: 15px;
  font-weight: 400;
  line-height: 170%;
}

.step-card .step-right p span {
  color: var(--color-primary);
  font-weight: 500;
}

.step-card .step-right .cta-btn {
  margin-top: 16px;
}

.step-card .step-right .cta-btn a {
  width: 289px;
}

.step-card .step-right .cta-btn p {
  font-weight: bold;
}


/* column */


/* keyword */
.keyword-section {
  background: var(--color-bg);
}

.keyword-inner {
  width: 1000px;
}

.keyword-area {
  margin-top: 32px;
}

.keyword-tabs {
  display: flex;
  gap: 16px;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding-bottom: 12px;
  cursor: pointer;
  font-size: 16px;
  position: relative;
  transition: all 0.3s ease;
  font-weight: 500;
  line-height: 170%;
}

.tab-item::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-border-soft);
}

.tab-item.is-active {
  color: var(--color-primary);
  font-weight: bold;
}

.tab-item.is-active::after {
  height: 3px;
  background-color: var(--color-primary);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.tab-panel.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
} 

.keyword-content {
  margin-top: 16px;
}

.keyword-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 24px;
  background: var(--color-white);
  gap: 16px 20px;
  list-style: none;
}

.keyword-grid li {
  display: block;
}

.keyword-btn {
  display: flex;
  width: 100%;
  border-radius: 30px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  line-height: 170%;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-white);
  height: 56px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.keyword-grid li:has(.keyword-btn.is-hidden) {
  display: none;
}

.keyword-btn:hover,
.keyword-btn.is-selected {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-more {
  display: flex;
  padding: 12px 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: 0.8px;
  cursor: pointer;
  width: 100%;
}

.btn-more:hover {
  opacity: 0.8;
}

.btn-more.is-hidden {
  display: none;
}


label input,
.keyword-grid li.is-hidden {
	display: none;
}

label span {
	width: 100%;
  border-radius: 30px;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
  line-height: 170%;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 500;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  background: var(--color-white);
  height: 56px;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  display: flex;
}

label input:checked + span {
	background-color: var(--color-primary);
  color: var(--color-white);
}


/* faq */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.faq-question {
  background-color: var(--color-bg-light);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-q-left {
  width: calc(100% - 30px);
}

.faq-q-left .faq-mark,
.faq-a-inner .faq-mark {
  font-size: 24px;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 2.4px;
  color: var(--color-primary);
  margin-right: 16px;
}

.faq-a-inner .faq-mark  {
  color: var(--color-gold);
}

.faq-q-left .faq-q-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 200%;
}

.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background-color: var(--color-gray);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  width: 16px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 16px;
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a-content {
  padding: 24px 24px 10px 24px;
  display: flex;
  align-items: flex-start;
}

.faq-a-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 200%;
}


/* Access */
.access-section {
  padding-bottom: 80px;
}

.access-container {
  display: flex;
  gap: 56px;
  margin-top: 32px;
  align-items: flex-start;
}

.access-map {
  flex: 1;
  min-width: 0;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px; 
  border: none;
  display: block;
}

.access-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-item:first-child {
  padding-top: 0;
}

.info-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 180%;
  margin-bottom: 8px;
}

.info-desc {
  font-size: 15px;
  font-weight: 400;
  line-height: 150%; 
}




@media only screen and (max-width: 767px) {
  .pc {
    display: none;
  }

  .sp {
    display: block !important;
  }

  .section {
    padding: 32px 0;
  }

  .faq-inner,
  .news-inner,
  .movie-inner,
  .about-inner,
  .flow-inner,
  .column-inner,
  .blog-inner,
  .reason-inner,
  .specialty-inner,
  .service-inner,
  .access-inner {
    width: 100%;
    padding: 0 20px;
  }

  /* お問い合わせ下 */
  .about-section, .column-section, .access-section {
    margin-top: 200px;
  }

  .column-section .article-list,
  .blog-section .article-list {
    margin: 24px 0;
  }

  .column-title .sub-text, .blog-title .sub-text {
    margin-top: 24px;
    font-size: 16px;
  }



  .mv-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    display: block;
    align-items: baseline;
    padding: 12px 20px;
  } 

  .mv-text h2 {
    font-size: 34px;
    letter-spacing: 3.4px;
    line-height: 130%;
  }

  .mv-sub-text {
    font-size: 15px;
  }

  .mv-sub-text span {
    font-size: 16px;
    padding: 0 11px 2px 11px;
    border-radius: 40px;
    margin-right: 4px;
  }

  .mv-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    object-fit: cover;
    z-index: -1;
  }

  .mv-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* news */
  .section.news-section {
    margin: 0;
  }

  .news-inner {
    flex-direction: column;
    gap: 16px;
  }

  .section-title.news-title h2 {
    margin-bottom: 0px;
  }

  .section-title.news-title {
    text-align: left;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

  .section-title.news-title .text-link {
    margin-right: 32px;
  }

  .news-list {
    max-width: 100%;
  }

  .news-list li a {
    gap: 4px;
    padding: 12px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .news-list li span {
    font-size: 13px;
  }

  .news-list li p {
    font-size: 14px;
    white-space: break-spaces;
  }

  
  /* 得意分野 */
  .specialty-checks h4 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .specialty-checks ul {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .specialty-checks li {
    width: 100%;
    padding: 12px 12px 12px 36px;
    font-size: 14px;
  }

  .specialty-checks li::before {
    top: 16px;
    left: 12px;
    width: 15px;
    height: 15px;
    background: url(../images/icon-check.svg) no-repeat center;
    background-size: contain;
  }

  /* 事務所紹介 */
  .video {
    margin-top: 24px;
  }

  /* about */
  .profile {
    margin-top: 24px;
    gap: 24px;
  }
  
  .profile-card {
    flex-direction: column;
    gap: 0px;
  }

  .profile-card img {
    width: 185px;
    height: auto;
    margin: 0 auto 8px;
  }

  .profile-content span {
    font-size: 13px;
  }

  .profile-content h3 {
    font-size: 20px;
    margin-top: 4px;
  }

  .profile-content .name {
    font-size: 14px;
    letter-spacing: 0.7px;
    margin-bottom: 8px;
  }

  .profile-text {
    padding-top: 8px;
  }

  /* service */
  .service-section {
    background: linear-gradient(to bottom, var(--color-bg-light) 0%, var(--color-bg-light) 50%, var(--color-white) 100%);
    padding: 16px 0 32px;
  }

  .service-item {
    display: flex;
    flex-direction: column;
  }

  .service-item img {
    width: 100%;
    height: auto;
  }

  .service-text-box {
    margin-left: 0px;
    margin-top: -12px;
    padding: 24px 20px;
    max-width: 100%;
  }

  .service-text-box img {
    width: 310px;
    height: auto;
  }

  .service-text-box .logo-text {
    font-size: 24px;
    margin: 8px 0 12px;
  }

  .service-text-box .service-desc {
    padding-top: 16px;
  }

  .service-title {
    margin: 32px auto 24px;
  }

  .service-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    margin-bottom: 40px;
  }

  .service-cards .card h3 {
    font-size: 18px;
  }

  .service-cards .card .card-body {
    padding: 20px 16px;
  }

  /* flow */
  .step {
    margin-top: 24px;
  }

  .step-card {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    align-items: self-start;
  }

  .step-card .step-left {
    gap: 8px;
  }

  .step-card .step-left img {
    width: 110px;
    height: 56px;
  }

  .step-card .step-right {
    max-width: 100%;
    width: 100%;
  }

  .step-card .step-right p {
    font-size: 14px;
  }

  .step-card .step-right .cta-btn {
    margin-top: 16px;
  }

  .step-card .step-right .cta-btn a {
    width: 100%;
  }

  /* keyword */
  .keyword-inner {
    width: 100%;
    padding: 0 20px;
  }

  .keyword-area {
    margin-top: 24px;
  }

  .keyword-tabs {
    display: flex;
    gap: 16px;
  }

  .tab-item {
    padding-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 130%;
  }

  .keyword-content {
    margin-top: 16px;
  }

  .keyword-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 16px 8px;
    gap: 6px 12px;
  }

  .keyword-btn {
    width: 100%;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    height: 48px;
    padding: 6px 24px;
    line-height: 130%;
  }

  .btn-more {
    padding: 8px 0;
    font-size: 14px;
  }

  label span {
    width: 100%;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    height: 48px;
    padding: 6px 24px;
    line-height: 130%;
    text-align: center;
  }


  /* faq */
  .faq-list {
    margin-top: 24px;
  }

  .faq-question {
    padding: 8px 16px;
  }

  .faq-q-left {
    width: calc(100% - 30px);
    display: flex;
  }

  .faq-q-left .faq-mark,
  .faq-a-inner .faq-mark {
    font-size: 24px;
    font-weight: 400;
    line-height: 120%;
    letter-spacing: 2.4px;
    color: var(--color-primary);
    margin-right: 16px;
  }

  .faq-q-left .faq-q-text {
    font-size: 14px;
    line-height: 180%;
  }

  .faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
  }

  .faq-item.is-open .faq-answer {
    grid-template-rows: 1fr;
  }

  .faq-a-inner {
    overflow: hidden;
  }

  .faq-a-content {
    padding: 16px 16px 8px 16px;
    display: flex;
    align-items: flex-start;
  }

  .faq-a-text {
    font-size: 14px;
  }

  /* Access */
  .access-section {
    padding-bottom: 40px;
  }

  .access-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
  }

  .access-map {
    width: 100%;
  }

  .access-map iframe {
    min-height: 198px; 
  }

  .info-item {
    padding: 16px 0;
  }

  .info-item:first-child {
    padding-top: 0;
  }



}
