/*
Theme Name: 2nd Tax - セカンドオピニオン専門税理士事務所
Theme URI: https://example.com
Author: 2nd Tax
Author URI: https://example.com
Description: セカンドオピニオン専門税理士事務所のコーポレートサイト用クラシックテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 2nd-tax
Tags: one-column, custom-menu, custom-logo, featured-images, sticky-post, translation-ready, blog, business
*/

:root {
  /* Primary Colors */
  --color-navy: #1e3a8a;
  --color-blue: #1d4ed8;
  --color-teal: #0ea5a4;
  --color-dark: #111827;
  --color-gray: #4b5563;
  --color-red: #d9534f;

  /* Light Colors */
  --color-white: #ffffff;
  --color-light-gray: #e5e7eb;
  --color-light-cream: #fffbeb;
  --color-light-blue: #eef2ff;
  --color-off-white: #f9fafb;

  /* Font Family */
  --font-sans: "Noto Sans JP", sans-serif;
  --font-serif: "Noto Serif JP", serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
}
@media screen and (min-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }
}

body {
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
}

:is(h1, h2, h3, h4, h5, h6) {
  letter-spacing: 8%;
}

img {
  vertical-align: bottom;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

.inner {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  @media screen and (width >= 768px) {
    padding: 0 40px;
  }
}

/* スマホ改行 */
.br-sp {
  display: block;
  @media screen and (width >= 764px) {
    display: none;
  }
}

.br-tb {
  display: block;
  @media screen and (width >= 1024px) {
    display: none;
  }
}

.br-tb-only {
  display: none;
  @media screen and (width >= 768px) and (width <= 1024px) {
    display: block;
  }
}

.br-tb-pc {
  display: none;
  @media screen and (width >= 1024px) {
    display: block;
  }
}

/* PC改行 */
.br-pc {
  display: none;
  @media screen and (width >= 764px) {
    display: block;
  }
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  height: 60px;
  @media screen and (width >= 768px) {
    height: 80px;
  }
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: inherit;
  padding: 0 0 0 20px;
  @media screen and (width >= 768px) {
    padding-right: 0px;
  }
}

.header .inner .header__logo {
  font-size: 20px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  width: 200px;
  @media screen and (width >= 768px) {
    padding-right: 0px;
    width: auto;
  }
}

.header .inner .header__logo img {
  width: 100%;
}

.header .inner .hamburger-wrap {
  position: fixed;
  top: 0;
  right: 0;
  display: flex;
  background: #555e6e;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  z-index: 210;
  @media screen and (width >= 768px) {
    width: 80px;
    height: 80px;
  }
  @media screen and (width >= 1024px) {
    display: none;
  }
}

.header .inner .hamburger {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  padding: 0;
}

.header .inner .hamburger {
  span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    left: 0;
    transition: 0.3s;
    &:nth-child(1) {
      top: 0;
    }
    &:nth-child(2) {
      top: 50%;
      transform: translateY(-50%);
    }
    &:nth-child(3) {
      bottom: 0;
    }
  }
  &.is-open {
    span {
      &:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
      }
      &:nth-child(2) {
        opacity: 0;
      }
      &:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
      }
    }
  }
}

.header .inner .header__nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 100px 40px 40px;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 200;
  @media screen and (width >= 1024px) {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 40px;
    transform: none;
    transition: none;
  }
}

.header .inner .header__nav.is-open {
  transform: translateX(0);
}

/* カスタムメニュー用 */
.header__nav .header__menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
@media screen and (min-width: 1024px) {
  .header__nav .header__menu {
    flex-direction: row;
    align-items: center;
    gap: 40px;
  }
}
.header__nav .header__menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .inner .header__nav a,
.header .inner .header__nav .header__menu a {
  display: block;
  width: 100%;
  font-size: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #1e3a8a;
  text-decoration: none;
  @media screen and (width >= 768px) {
    width: 70%;
    margin: 0 auto;
  }
  @media screen and (width >= 1024px) {
    display: inline;
    width: auto;
    font-size: 15px;
    padding: 0;
    border-bottom: none;
  }
}

.header .inner .header__nav li.header__cta a {
  border-bottom: none;
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  border-radius: 10px;

  background: #1e3a8a;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  @media screen and (width >= 1024px) {
    margin-top: 0;
    padding: 28px 34px;
    text-align: center;
    border-radius: 0;
    width: auto;
    font-size: 15px;
  }
}

.header .inner .header__nav li.header__cta a::before {
  content: "";
  background: url(images/common/icon-mail.svg);
  background-repeat: no-repeat;
  background-size: contain;
  width: 20px;
  height: 16px;
  transition: filter 0.2s ease;
}

.header .inner .header__nav li.header__cta a:hover {
  background: var(--color-light-blue);
  color: #1e3a8a;
}

.header .inner .header__nav li.header__cta a:hover::before {
  filter: invert(1);
}

.header .inner .nav-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 150;
  @media screen and (width >= 768px) {
    display: none;
  }
}

.header .inner .nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  height: 663px;
  background: #ffffff;
  background-image: url(images/top/fv-image_sp.png);
  background-position: center bottom -40px;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  @media screen and (width >= 768px) {
    height: 720px;
    background-image: url(images/top/fv-image_pc.png);
    background-position: center;
    align-items: center;
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-left: 0px;
  text-align: center;
  @media screen and (width >= 768px) {
    padding-top: 0px;
    padding-left: 10px;
    text-align: left;
  }
  @media screen and (width >= 1024px) {
    padding-left: 60px;
  }
}

.hero__badge {
  color: var(--color-navy);
  display: block;
  padding: 8px;
  font-family: var(--font-serif);
  font-weight: bold;
  font-size: 18px;
  margin-inline: auto;
  margin-bottom: 17px;
  position: relative;
  letter-spacing: 8%;
  width: fit-content;
  @media screen and (width >= 768px) {
    display: inline-block;
    font-size: 24px;
  }
  &::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--color-navy);
    width: 1px;
    height: 20px;
  }
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    background: var(--color-navy);
    width: 100%;
    height: 1px;
  }
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 8vw, 32px);
  font-weight: bold;
  margin-bottom: 29px;
  line-height: 1.2;
  letter-spacing: 8%;
  background: linear-gradient(90deg, var(--color-navy), var(--color-teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  filter: drop-shadow(0px 0px 20px rgba(255, 255, 255, 1))
    drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.8))
    drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.6));
  @media screen and (width >= 768px) {
    font-size: 36px;
    text-align: left;
  }
}

.hero__desc {
  color: var(--color-navy);
  font-size: 16px;
  font-weight: bold;
  line-height: 1.75;
  letter-spacing: 8%;
  margin-bottom: 27px;
  text-align: center;
  @media screen and (width >= 768px) {
    font-size: 18px;
    text-align: left;
  }
}

.hero__features {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-inline: auto;
  margin-bottom: 82px;
  max-width: 360px;
  @media screen and (width >= 768px) {
    max-width: 480px;
    margin-inline: 0;
    justify-content: flex-start;
  }
}

.hero__feature {
  width: 28%;
  aspect-ratio: 1;
  background:
    linear-gradient(white, white) padding-box,
    linear-gradient(90deg, var(--color-navy), var(--color-teal)) border-box;
  border: 1px solid transparent;
  border-radius: 50%;
  box-shadow: 1px 1px 4px rgba(30, 58, 138, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: bold;
  color: #1e3a8a;
  line-height: 1.4;
  letter-spacing: 8%;
  margin-left: -1%;
  position: relative;
  @media screen and (width >= 768px) {
    width: 20.834%;
  }
}

.hero__feature:first-child {
  margin-left: 0;
}

.hero__feature:last-child {
  margin-right: 0;
}

.hero__feature:nth-child(1) {
  z-index: 4;
}
.hero__feature:nth-child(2) {
  z-index: 3;
}
.hero__feature:nth-child(3) {
  z-index: 2;
}
.hero__feature:nth-child(4) {
  z-index: 1;
}

/* ---- Reusable CTA Button ---- */
.cta-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #1e3a8a;
  color: #fff;
  padding: 20px 40px;
  border-radius: 5px;
  font-size: 24px;
  text-decoration: none;
  position: relative;
  width: 283px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  @media screen and (width >= 768px) {
    font-size: 25px;
  }
  &::before {
    content: "";
    background: url(images/common/icon-mail.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 20px;
    height: 16px;
    transition: filter 0.2s ease;
  }
}

.cta-btn:hover {
  background: var(--color-light-blue);
  color: #1e3a8a;
}

.cta-btn:hover::before {
  filter: invert(1);
}

.cta-btn__badge {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-teal);
  border-radius: calc(infinity * 1px);
  font-size: 16px;
  padding: 2px 30px;
  color: #fff;
  white-space: nowrap;
  &::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--color-teal);
  }
}

/* Hero-specific overrides */
.hero__cta {
  margin: auto;
  transform: translateY(160px);
  @media screen and (width >= 768px) {
    margin: inherit;
    transform: translateY(0px);
  }
}

/* ==================== SECTION COMMON ==================== */
.section {
  padding: 80px 0;
}

.section__eng {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  text-align: center;
  margin-bottom: 4px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 8%;
}

.section__title span.emphasis-dots {
  position: relative;
  color: var(--color-navy);
}

.section__title span.emphasis-dots::before {
  content: "●";
  position: absolute;
  top: -1.8em; /* この値で上下位置を調整 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.2em;
}

/* ==================== CONCERNS ==================== */
.concerns {
  background: var(--color-light-blue);
  /* background-image: linear-gradient(
    0deg,
    var(--color-white),
    var(--color-white) 22.5%,
    var(--color-light-blue) 22.5%,
    var(--color-light-blue)
  );
  padding: 40px 0 60px; */
}

.section__title--concerns span {
  position: relative;
  color: var(--color-navy);
}

.section__title--concerns span::before {
  content: "●";
  position: absolute;
  top: -0.8em; /* この値で上下位置を調整 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.2em;
}

.concerns__list {
  max-width: 630px;
  margin: 0 auto;
  list-style: none;
  width: 90%;
  @media screen and (width >= 768px) {
    width: 100%;
  }
}

.concerns__item {
  font-size: 18px;
  padding: 0px 0 13px;
  padding-left: 30px;
  position: relative;
}

.concerns__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1.2em;
  height: 1.2em;
  background: var(--color-navy);
  border-radius: calc(infinity * 1px);

  /* チェックマーク */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
}

.concerns__item .concerns__emphasis {
  font-weight: bold;
  color: var(--color-navy);
}

.concerns__arrow {
  margin: 20px auto;
  .triangle {
    width: 216px;
    height: 58px;
    background: linear-gradient(0deg, var(--color-navy), transparent);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    margin: 0 auto;
    text-align: center;
  }
}

.concerns__bridge {
  text-align: center;
  margin-top: 40px;
  background: var(--color-navy);
  border-radius: 10px;
  padding: 50px 16px;
  margin-bottom: -160px;
  position: relative;
}

.concerns__bridge-text {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 8%;
  text-align: justify;
  @media screen and (width >= 768px) {
    font-size: 24px;
    text-align: center;
  }
}

/* ==================== SECOND OPINION ==================== */
.second-opinion {
  background: var(--color-white);
  padding-top: 160px;
}

.second-opinion__title {
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 22px;
}

.second-opinion__desc {
  font-size: 16px;
  text-align: center;
  max-width: 761px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.second-opinion__box {
  background: #fff;
  max-width: 761px;
  margin: 0 auto;
  padding: 0;
}

.second-opinion__box-header {
  background: var(--color-light-cream);
  border-top: 1px solid var(--color-navy);
  border-bottom: 1px solid var(--color-navy);
  padding: 10px;
}

.second-opinion__box-header h3 {
  font-size: clamp(18px, 2.5vw, 22.5px);
  font-weight: bold;
  color: var(--color-navy);
  text-align: center;
}

.second-opinion__box-body {
  margin: 30px 0;
}

.second-opinion__not-title {
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 16px;
}

.second-opinion__not-list {
  font-size: 16px;
  text-align: center;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-direction: column;
  @media screen and (width >= 768px) {
    flex-direction: row;
    gap: 40px;
  }
}

.second-opinion__not-list__item {
  width: 100%;
  border: 1px solid var(--color-navy);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  @media screen and (width >= 768px) {
    aspect-ratio: 1;
    width: 200px;
    padding: 0;
  }
  .second-opinion__not-icon {
    background: var(--color-light-blue);
    width: 85px;
    height: 85px;
    border-radius: 100px;
    padding: 20px;
    display: grid;
    place-items: center;
    img {
      width: 35px;
      height: 35px;
      object-fit: contain;
    }
  }
  .second-opinion__not-text {
    color: var(--color-navy);
    font-weight: bold;
    small {
      color: var(--color-dark);
    }
  }
}

.second-opinion__not-note {
  display: block;
  text-align: center;
}

.second-opinion__not-note {
  font-size: 16px;
  margin-top: 16px;
  line-height: 1.8;
}

/* ==================== SERVICES ==================== */
.services {
  background: var(--color-off-white);
}

.services__content {
  max-width: 1120px;
  width: 100%;
  background: url("images/top/bg-service.png") center / cover no-repeat;
  border-radius: 10px;
  padding: 30px 20px;
}

.services__content__inner {
  background: var(--color-white);
  border-radius: 5px;
  padding: 30px 20px;
  @media screen and (width >= 768px) {
    padding: 35px 30px;
  }
}

.services__subtitle {
  color: var(--color-navy);
  font-weight: bold;
  margin-bottom: 25px;
  text-align: center;
  @media screen and (width >= 768px) {
    text-align: left;
  }
}

.services__cards {
  display: grid;
  gap: 12px;
  grid-auto-rows: 1fr;
  @media screen and (width >= 768px) {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 0px;
    column-gap: 20px;
    grid-auto-rows: auto;
  }
}

.services__card {
  background: var(--color-light-blue);
  border-radius: 5px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  justify-items: center;
  align-content: center;
  text-align: center;
  padding: 24px 10px;
  row-gap: 8px;
}

.services__card-title {
  color: var(--color-dark);
  font-size: 16px;
  font-weight: bold;
  align-self: end;
  @media screen and (width >= 768px) {
    font-size: 17px;
    align-self: center;
  }
  @media screen and (width >= 1024px) {
    font-size: 18px;
  }
}

.services__card-desc {
  font-size: 16px;
  line-height: 1.4;
  padding: 0 10px;
}

.services__detail {
  max-width: 1140px;
  margin: 34px auto;
}

.services__detail-list {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  @media screen and (width >= 768px) {
    display: flex;
    justify-content: center;
  }
}

.services__detail-item {
  border: 2px dashed var(--color-navy);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  aspect-ratio: 1;
  padding: 0;
  @media screen and (width >= 768px) {
    width: 200px;
    height: 190px;
    padding: 0;
    aspect-ratio: auto;
  }
}

.services__detail-item-title {
  color: var(--color-navy);
  font-size: 16px;
  font-weight: bold;
  min-height: 3em;
  display: flex;
  align-items: end;
  @media screen and (width >= 768px) and (width <= 1024px) {
    font-size: 14px;
    align-items: center;
  }
}

.services__detail-item-desc {
  font-size: 12px;
  min-height: 3.6em;
  display: flex;
  align-items: start;
  @media screen and (width >= 768px) {
    font-size: 13px;
  }
}

.services__note {
  font-size: 13px;
  text-align: right;
  max-width: 1158px;
  margin: 20px auto 0;
  padding-right: 280px;
}

/* ==================== FLOW ==================== */
.flow {
  background: var(--color-light-blue);
  padding: 80px 0;
}

.flow__steps {
  max-width: 922px;
  margin: 80px auto 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.flow__step {
  background: var(--color-white);
  display: flex;
  align-items: stretch;
  min-height: 142px;
}

.flow__step__left {
  background-color: var(--color-navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  min-width: 84px;
  @media screen and (width >= 768px) {
    min-width: 100px;
  }
  flex-shrink: 0;
}

.flow__step__left span {
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.flow__step__left b {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.flow__step-right {
  padding: 24px 10px;
  @media screen and (width >= 768px) {
    padding: 24px 32px;
  }
}

.flow__step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-navy);
}

.flow__step-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

/* ==================== PRICING ==================== */
.pricing {
  background: #fff;
  padding: 80px 0;
}

.pricing__title {
  font-size: 32px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 40px;
}

.pricing__amount {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
  color: #333;
}

.pricing__amount-num {
  font-family: "Inter", sans-serif;
  font-size: 40px;
  font-weight: bold;
  color: var(--color-teal);
}

.pricing__amount__tax {
  font-weight: normal;
}

.pricing__desc {
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
  max-width: 598px;
  margin: 0 auto 30px;
}

.pricing__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  max-width: 600px;
  margin: 0 auto;
  @media screen and (width >= 768px) {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing__card--full {
  grid-column: 1 / -1;
}

.pricing__card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 16px;
  background: var(--color-navy);
  color: var(--color-white);
}

.pricing__card--outline {
  flex: 1;
}

.pricing__card--full {
  width: 100%;
}

.pricing__card-title {
  font-size: 16px;
  font-weight: 500;
}

.pricing__notes {
  text-align: right;
  max-width: 600px;
  margin: 10px auto 0;
  text-align: right;
}

.pricing__notes p {
  font-size: 13px;
}

/* ==================== REASONS ==================== */
.reasons {
  background: var(--color-off-white);
}

.reasons__items {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  @media screen and (width >= 768px) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reasons__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.reasons__item-image {
  width: 100%;
}

.reasons__item-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  margin-block: 12px;
  line-height: 1.4;
  letter-spacing: 2.5%;
  @media screen and (width >= 768px) and (width <= 1024px) {
    font-size: 20px;
    etter-spacing: 0;
  }
}

.reasons__item-desc {
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
}

/* ==================== PROFILE ==================== */
.profile {
  background: var(--color-light-blue);
}

.profile__header {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 48px;
  @media screen and (width >= 768px) {
    gap: 40px;
  }
}

.profile__image {
  width: 55%;
  max-width: 400px;
  flex-shrink: 0;
  @media screen and (width >= 768px) {
    width: 100%;
  }
}

.profile__image img {
  width: 100%;
  height: auto;
  display: block;
}

.profile__namearea {
  display: flex;
  flex-direction: column;
}

.profile__role {
  font-size: 14px;
  color: var(--color-navy);
}

.profile__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
  @media screen and (width >= 768px) {
    font-size: 28px;
    gap: 12px;
  }
}

.profile__name-en {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 400;
  @media screen and (width >= 768px) {
    font-size: 16px;
  }
}

.profile__bio {
  font-size: 15px;
  line-height: 1.8;
}

.profile__bio p {
  margin-bottom: 1em;
}

.profile__bio p:last-child {
  margin-bottom: 0;
}

/* ==================== FAQ ==================== */
.faq {
  background: var(--color-off-white);
  padding: 80px 0;
}

.faq__items {
  max-width: 922px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-white);
  margin-bottom: 19px;
  overflow: hidden;
}

.faq__question {
  background: var(--color-navy);
  padding: 22px 21px;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-white);
  @media screen and (width >= 768px) {
    font-size: 18px;
  }
}

.faq__answer {
  padding: 16px 21px;
  font-size: 16px;
}

/* ==================== CTA BOTTOM ==================== */
.cta-bottom {
  background: linear-gradient(to right, #1e3a8a, #0ea5a4);
  padding: 80px 0;
  text-align: center;
}

.cta-bottom__title {
  font-size: 24px;
  color: var(--color-white);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
  @media screen and (width >= 768px) {
    font-size: 32px;
  }
}

.cta-bottom__content {
  max-width: 800px;
  background-color: var(--color-white);
  margin: 40px auto 0;
  padding: 20px;
}

.cta-bottom__desc {
  font-size: 16px;
  margin-bottom: 24px;
}

.cta-bottom__badge {
  display: inline-block;
  background: #d9d9d9;
  padding: 10px 33px;
  font-size: 20px;
  margin-bottom: 12px;
}

.cta-bottom__btn {
  display: inline-block;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 20px 10px;
  @media screen and (width >= 1024px) {
    padding: 40px 60px;
  }
}

.footer__name {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 12px;
  @media screen and (width >= 768px) {
    font-size: 24px;
  }
}

.footer__address {
  font-size: 16px;
  margin-bottom: 20px;
  @media screen and (width >= 768px) {
    margin-bottom: 60px;
  }
}

.footer__divider {
  border: none;
  border-top: 1px solid #ccc;
  margin-bottom: 20px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column-reverse;
  @media screen and (width >= 768px) {
    flex-direction: row;
  }
}

.footer__copyright {
  font-size: 14px;
}

.footer__privacy {
  font-size: 13px;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer__privacy::before {
  content: ">";
  font-size: 16px;
}

/* ==================== Contact Form 7 ==================== */
.wpcf7-form {
  font-family: var(--font-sans);
  max-width: 600px;
  margin: 0 auto;
}

.wpcf7-form p {
  margin-block: 10px 20px;
}

.wpcf7-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-block: 5px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: 5px;
  transition: border-color 0.2s;
}

.wpcf7-form select {
  cursor: pointer;
  appearance: auto;
}

.wpcf7-form .form-title {
  color: var(--color-dark);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wpcf7-form .form-row {
  display: flex;
  gap: 12px;
}

.wpcf7-form .form-row .wpcf7-form-control-wrap {
  flex: 1;
}

.wpcf7-form .required-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-white);
  background: var(--color-red);
  padding: 0;
  border-radius: 5px;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-navy);
}

.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7-form input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.wpcf7-form .wpcf7-list-item {
  margin: 0 0 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wpcf7-form .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

/* 相談カテゴリー: カード風デザイン */
.wpcf7-form .wpcf7-form-control-wrap.category .wpcf7-list-item {
  margin: 0 0 12px 0;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 6px;
  display: block;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.wpcf7-form .wpcf7-form-control-wrap.category .wpcf7-list-item:hover {
  background: #fafafa;
  border-color: #ccc;
}

.wpcf7-form .wpcf7-form-control-wrap.category .wpcf7-list-item:last-child {
  margin-bottom: 0;
}

.wpcf7-form .wpcf7-form-control-wrap.category .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  margin: 0;
}

.wpcf7-form .wpcf7-form-control-wrap.category input[type="checkbox"] {
  margin: 0;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
}

.wpcf7-form .wpcf7-form-control-wrap.category .wpcf7-list-item-label {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
  flex: 1;
}

.wpcf7-form .wpcf7-list-item-label {
  font-size: 14px;
  line-height: 1.6;
}

.wpcf7-form .wpcf7-list-item-label a {
  color: var(--color-navy);
  text-decoration: underline;
}

.wpcf7-form .wpcf7-list-item-label a:hover {
  text-decoration: none;
}

.wpcf7-form input[type="submit"] {
  display: inline-block;
  width: 100%;
  margin: 24px auto 0;
  padding: 20px 40px;
  font-size: 18px;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-white);
  background: var(--color-navy);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
  opacity: 0.75;
}
.wpcf7-form input[type="submit"]:active {
  transform: scale(0.98);
}
.wpcf7-form input[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.wpcf7-form input.wpcf7-not-valid {
  border-color: #dc3545;
}

.wpcf7-form .wpcf7-not-valid-tip {
  font-size: 13px;
  color: #dc3545;
  margin-top: 4px;
}

.wpcf7-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid transparent;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.wpcf7-form .wpcf7-validation-errors,
.wpcf7-form .wpcf7-mail-sent-ng {
  background: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.submit-area {
  position: relative;
  .wpcf7-spinner {
    position: absolute;
    top: 50%;
    right: 0;
  }
}

/* ==================== Contact Page ==================== */
.contact-page {
  background-color: var(--color-light-blue);
  padding: 10px;
  @media screen and (width >= 768px) {
    padding: 40px 0;
  }
  .inner {
    background: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    @media screen and (width >= 768px) {
      padding: 40px 0;
    }
  }
}

.contact-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-page__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: bold;
  color: var(--color-navy);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.contact-page__subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
}

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

.entry-header .entry-title {
  text-align: center;
  margin: 0 auto 2rem;
}

/* ==================== Privacy Policy Page ==================== */
.privacy-policy-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

.privacy-policy-page__header {
  text-align: center;
  margin-bottom: 40px;
}

.privacy-policy-page__title {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: bold;
  color: var(--color-dark);
  letter-spacing: 0.08em;
}

.privacy-policy-page__content {
  max-width: 1140px;
  margin: 0 auto;
}

.privacy-policy-page__section {
  margin-bottom: 1.5rem;
}

.privacy-policy-page__section:last-child {
  margin-bottom: 0;
}

.privacy-policy-page__content h2 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: bold;
  color: var(--color-dark);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-policy-page__content .privacy-policy-page__section:first-of-type h2 {
  margin-top: 0;
}

.privacy-policy-page__content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.privacy-policy-page__content ul {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.privacy-policy-page__content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.privacy-policy-page__content a {
  color: var(--color-blue);
  text-decoration: underline;
}

.privacy-policy-page__content a:hover {
  color: var(--color-navy);
}

/* 区切り線を細く */
.privacy-policy-page__content .wp-block-separator,
.privacy-policy-page__content hr.wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-light-gray);
  margin: 1.5rem 0;
}
