/*
Theme Name: ASC Gyosei
Theme URI: https://asc-gyosei.com
Description: ASC行政書士事務所 公式テーマ — Bridge the World
Author: ASC行政書士事務所
Version: 1.1.0
Text Domain: asc-gyosei
*/

/* ========================================
   CSS Custom Properties
   社労士サイト(asc-roumu.com)と統一感を持たせる
   メインカラーのみオレンジに変更
   ======================================== */
:root {
  --color-primary: #e67e22;
  --color-primary-dark: #cf6d13;
  --color-primary-light: #fdf2e9;
  --color-accent: #f39c12;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f5;
  --color-border: #dedfe0;
  --color-white: #ffffff;
  --font-family: inherit;
  --max-width: 1100px;
  --header-height: 72px;
  --shadow: 6px 6px 9px rgba(0, 0, 0, 0.2);
  --shadow-light: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Utility
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--primary-light {
  background: var(--color-primary-light);
}

.section__title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--color-text);
  letter-spacing: 1px;
}

.section__subtitle {
  font-size: 14px;
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 48px;
}

.section__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin: 12px auto 0;
}

/* ========================================
   Buttons — 社労士サイトと同じ丸型ボタン
   ======================================== */
.btn {
  display: inline-block;
  padding: calc(.667em + 2px) calc(1.333em + 2px);
  border-radius: 9999px;
  font-size: 1.125em;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  letter-spacing: 0.5px;
  text-decoration: none;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  opacity: 0.9;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--large {
  padding: 16px 40px;
  font-size: 1.125em;
}

/* ========================================
   Header — 社労士サイトに近いスタイル
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

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

.header__group-link {
  font-size: 11px;
  color: var(--color-text-light);
  margin-top: 2px;
}

.header__group-link a {
  color: var(--color-text-light);
  text-decoration: none;
}

.header__group-link a:hover {
  color: var(--color-primary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.header__nav a:hover {
  color: var(--color-primary);
}

.header__cta {
  padding: 8px 20px;
  font-size: 13px;
}

/* Mobile menu toggle */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ========================================
   Hero Section — 社労士サイトに合わせて白ベース
   ======================================== */
.hero {
  margin-top: var(--header-height);
  background: var(--color-white);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  border-bottom: 4px solid var(--color-primary);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__tagline {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero__title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 20px;
  color: var(--color-text);
}

.hero__flow {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.hero__description {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 36px;
}

/* ========================================
   Problems Section
   ======================================== */
.problems__list {
  max-width: 640px;
  margin: 0 auto 40px;
}

.problems__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
}

.problems__item::before {
  content: "☑";
  color: var(--color-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.problems__cta {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
}

/* ========================================
   Reasons Section
   ======================================== */
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.reason-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.reason-card:hover {
  transform: translateY(-3px);
}

.reason-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.reason-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
}

.reason-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  text-align: left;
}

/* ========================================
   Services Section
   ======================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 32px 20px;
  box-shadow: var(--shadow);
}

.service-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.service-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.service-card__text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.service-card__list {
  margin-top: 10px;
}

.service-card__list li {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: "●";
  color: var(--color-primary);
  position: absolute;
  left: 0;
  font-size: 6px;
  top: 8px;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing__table {
  max-width: 760px;
  margin: 0 auto;
}

.pricing__category {
  margin-bottom: 28px;
}

.pricing__category-title {
  font-size: 17px;
  font-weight: 700;
  padding: 10px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 6px 6px 0 0;
}

.pricing__items {
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  overflow: hidden;
}

.pricing__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.pricing__item:last-child {
  border-bottom: none;
}

.pricing__item:nth-child(even) {
  background: var(--color-bg-alt);
}

.pricing__item-name {
  font-size: 14px;
}

.pricing__item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.pricing__package {
  max-width: 760px;
  margin: 28px auto 0;
  background: var(--color-primary-light);
  border: 2px solid var(--color-primary);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
}

.pricing__package-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing__package-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.pricing__package-detail {
  font-size: 13px;
  color: var(--color-text-light);
}

.pricing__note {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 12px;
  color: var(--color-text-light);
}

/* ========================================
   Flow Section
   ======================================== */
.flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow__step {
  text-align: center;
  position: relative;
}

.flow__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.flow__step-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.flow__step-text {
  font-size: 12px;
  color: var(--color-text-light);
}

.flow__step:not(:last-child)::after {
  content: "▶";
  position: absolute;
  top: 22px;
  right: -14px;
  font-size: 12px;
  color: var(--color-border);
}

/* ========================================
   Message (CEO) Section — 社労士サイトと統一（白背景）
   ======================================== */
.message {
  background: var(--color-bg-alt);
}

.message__content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.message__photo {
  text-align: center;
}

.message__photo img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.message__name {
  font-size: 18px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--color-text);
}

.message__titles {
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 6px;
  line-height: 1.6;
}

.message__text {
  font-size: 15px;
  line-height: 2;
  color: var(--color-text);
}

.message__text p {
  margin-bottom: 16px;
}

.message__qualifications {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-white);
  border-radius: 6px;
  border-left: 4px solid var(--color-primary);
}

.message__qualifications-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.message__qualifications li {
  font-size: 13px;
  padding: 2px 0;
  color: var(--color-text-light);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 18px 36px 18px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.6;
}

.faq__question::before {
  content: "Q.";
  color: var(--color-primary);
  font-weight: 700;
  margin-right: 8px;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-primary);
}

.faq__item.is-open .faq__question::after {
  content: "−";
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 300px;
  padding-bottom: 18px;
}

.faq__answer-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  padding-left: 28px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact__inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact__info {
  text-align: center;
  margin-bottom: 36px;
}

.contact__phone {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact__phone a {
  color: var(--color-primary);
}

.contact__hours {
  font-size: 13px;
  color: var(--color-text-light);
}

.contact__form-group {
  margin-bottom: 16px;
}

.contact__form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact__form-group label .required {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
}

.contact__form-group input,
.contact__form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact__form-group input:focus,
.contact__form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact__form-group textarea {
  height: 140px;
  resize: vertical;
}

.contact__form-submit {
  text-align: center;
  margin-top: 24px;
}

/* ========================================
   Footer — 社労士サイトに近い落ち着いたグレー
   ======================================== */
.footer {
  background: #333333;
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 20px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 24px;
}

.footer__info h3 {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer__info p {
  font-size: 13px;
  line-height: 1.8;
}

.footer__links h3 {
  color: var(--color-white);
  font-size: 16px;
  margin-bottom: 12px;
}

.footer__links a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  padding: 3px 0;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__group {
  text-align: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 16px;
  font-size: 13px;
}

.footer__group a {
  color: var(--color-primary);
}

.footer__copyright {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    gap: 12px;
  }

  .header__nav.is-open {
    display: flex;
  }

  .header__menu-toggle {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__flow {
    font-size: 13px;
  }

  .reasons__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flow__steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .flow__step:not(:last-child)::after {
    content: "▼";
    position: static;
    display: block;
    text-align: center;
    margin-top: 4px;
    font-size: 10px;
  }

  .message__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .message__text {
    text-align: left;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .pricing__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .section {
    padding: 48px 0;
  }

  .section__title {
    font-size: 20px;
  }
}
