@charset "UTF-8";
/*
 Theme Name: SANGO Child
 Theme URI: https://saruwakakun.design
 Author: SARUWAKA
 Author URI: https://saruwakakun.com
 Template: sango-theme
 Version: 4.0
*/

/* ===== Typography Hierarchy ===== */
.front-main .wp-block-heading,
.front-main h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  padding: 2px 0 2px 12px;
  border-left: 4px solid #007d7a;
  display: block;
}

.front-main .wp-block-heading:first-child,
.front-main h2:first-child {
  margin-top: 0;
}

.front-main h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #2C3E50;
  margin: 32px 0 12px;
}

/* ===== Section Spacing（全ページ共通：セクション間 32px / SP 16px、フッター手前 64px / 32px） ===== */
.front-work { margin-top: 32px !important; }
.price-nav { margin-top: 32px !important; }
.front-cta { margin-top: 32px !important; margin-bottom: 64px !important; }

.front-main {
  padding-top: 64px;
}

@media (max-width: 640px) {
  .front-work { margin-top: 16px !important; }
  .price-nav { margin-top: 16px !important; }
  .front-cta { margin-top: 16px !important; margin-bottom: 32px !important; }
  .front-main { padding-top: 32px; }
}

/* ===== Price Nav (Profile/Top → /price への導線) ===== */
.price-nav {
  width: 100%;
}

/* Profile / Price ページ: コンテンツ幅に揃える（トップ以外で適用） */
body:not(.home) .price-nav,
body:not(.home) .front-cta {
  max-width: 1200px;
  width: calc(100% - 32px);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Price ページテンプレート: 本文エリア（#main / #inner-content）も 1200px に揃える */
body.page-template-page-price .one-column #main,
body.page-template-page-price-php .one-column #main {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-template-page-price .one-column #inner-content,
body.page-template-page-price-php .one-column #inner-content {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  justify-content: center !important;
}

.price-nav__inner {
  background: #f7fbfb;
  border: 1px dashed #007d7a;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.price-nav__text {
  font-size: 1rem;
  color: #007d7a;
  margin: 0;
  font-weight: 600;
}

.price-nav__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: #007d7a;
  color: #fff !important;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.price-nav__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,125,122,0.25);
  color: #fff !important;
}

@media (max-width: 640px) {
  .price-nav__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .price-nav__btn {
    justify-content: center;
  }
}

/* ===== Process Flow（ご依頼の流れ） ===== */

/* SANGO timeline のマーカー縁色をブランドカラーに揃える
   親テーマ style-old.css の .tl_marker { border: solid 3px } が
   .main-bdr の border-color を shorthand で上書きして黒になるのを救済 */
.tl_marker {
  border-color: #007d7a !important;
}

/* SANGO sgb-heading 見出しの下余白 */
.wp-block-sgb-headings {
  margin-bottom: 24px;
}

/* SANGO box3（sng-box）背景をサイト共通のライトティールに統一 */
.wp-block-sgb-box.sng-box.box3 {
  background-color: #f0f8f8 !important;
}

/* PC 以上で .entry-content と左右位置を揃える（.entry-content の padding: 40px に合わせる） */
@media (min-width: 1030px) {
  .process-flow,
  .faq {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.process-flow {
  max-width: 1200px;
  width: calc(100% - 32px);
  margin: 32px auto 0;
  box-sizing: border-box;
}

.process-flow__title,
.faq__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2C3E50;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  padding: 2px 0 2px 12px;
  border-left: 4px solid #007d7a;
  display: block;
}

.process-flow__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.process-flow__item {
  background: #f7fbfb;
  border: 1px solid #e8f0f0;
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
}

.process-flow__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #007d7a;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.process-flow__step-title {
  font-size: 1rem;
  font-weight: 600;
  color: #007d7a;
  margin: 0 0 8px;
}

.process-flow__desc {
  font-size: 0.8125rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 767px) {
  .process-flow__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ===== FAQ ===== */
.faq {
  max-width: 1200px;
  width: calc(100% - 32px);
  margin: 0 auto;
  box-sizing: border-box;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: #f7fbfb;
  border: 1px solid #d7e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.faq__item[open] {
  background: #eaf3f3;
  border-color: #007d7a;
}

.faq__question {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 600;
  color: #2C3E50;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.6;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::before {
  content: "Q.";
  color: #007d7a;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.faq__toggle {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  pointer-events: none;
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #007d7a;
  transform: translateY(-50%);
  transition: transform 0.2s;
}
.faq__toggle::after {
  transform: translateY(-50%) rotate(90deg);
}
.faq__item[open] .faq__toggle::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq__answer {
  padding: 0 24px 20px 56px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.9;
}

.faq__answer p {
  margin: 0 0 8px;
}

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

@media (max-width: 640px) {
  .faq__question {
    padding: 16px 44px 16px 20px;
    font-size: 0.95rem;
  }
  .faq__answer {
    padding: 0 20px 16px 48px;
    font-size: 0.875rem;
  }
  .faq__toggle {
    right: 20px;
  }
}

/* ===== CTA Section ===== */
.front-cta {
  background: #f0f8f8;
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
}

.front-cta__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2C3E50;
  margin: 0 0 8px;
}

.front-cta__lead {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 24px;
}

.front-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.front-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #007d7a;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.front-cta__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,125,122,0.3);
}

.front-cta__btn--outline {
  background: #fff;
  color: #007d7a !important;
  border: 1px solid #007d7a;
}

.front-cta__note {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 16px 0 0;
}

@media (max-width: 640px) {
  .front-cta {
    padding: 32px 16px;
  }
  .front-cta__buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .front-cta__btn {
    justify-content: center;
  }
}

/* ===== Font ===== */
body {
  font-family: 'Zen Maru Gothic', sans-serif !important;
}

.sgb-site-title,
.sitename,
#logo,
.wp-block-site-title {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

#logo#logo,
#logo a,
.header-logo__link {
  font-family: 'Zen Maru Gothic', sans-serif !important;
}

/* ===== Top Carousel ===== */
.carousel-slide {
  position: relative;
  width: 100%;
}

.carousel-slide__image {
  display: block;
  width: 100%;
  height: auto;
}

.carousel-slide__text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  text-align: center;
  margin: 0;
  padding: 12px 30px;
}

@media (max-width: 767px) {
  .carousel-slide__text {
    font-size: 1.1rem;
  }
}

/* ===== Front Layout (2カラム) ===== */
.front-content {
  max-width: 1232px;
  margin: 0 auto;
  padding: 48px 16px;
}

.front-layout {
  display: flex;
  gap: 40px;
}

.front-main {
  flex: 1;
  min-width: 0;
}

.front-sidebar {
  width: 320px;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .front-layout {
    flex-direction: column;
  }
  .front-sidebar {
    width: 100%;
  }
}

/* ===== Sidebar ===== */
.sidebar-card {
  background: #F0F8F8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0,125,122,0.05);
}

.sidebar-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #007d7a;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.sidebar-card__text {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.8;
}

/* Profile */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.sidebar-profile__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-profile__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}

.sidebar-profile__name {
  font-weight: 500;
  color: #2C3E50;
}

/* SNS Links */
.sidebar-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-links__item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.875rem;
  color: #2C3E50;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.sidebar-links__item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.sidebar-links__icon {
  flex-shrink: 0;
  display: flex;
}

.sidebar-links__icon--instagram { color: #E1306C; }
.sidebar-links__icon--line { color: #06C755; }
.sidebar-links__icon--note { color: #78AFFF; }

/* ===== About Page ===== */
.about-section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #007d7a;
  margin-bottom: 40px;
}

/* Hero */
.about-hero {
  background: #e6f2f2;
}

.about-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 16px 48px;
  text-align: center;
}

.about-hero__icon {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 0 auto 24px;
}

.about-hero__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}

.about-hero__name {
  font-size: 1.5rem;
  font-weight: 500;
  color: #2C3E50;
  margin-bottom: 8px;
}

.about-hero__role {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 32px;
}

.about-hero__text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 2;
  max-width: 560px;
  margin: 0 auto 16px;
  text-wrap: pretty;
}

.sp-hide {
  display: inline;
}

@media (max-width: 640px) {
  .sp-hide { display: none; }
}

/* What I Do */
.about-works {
  padding: 64px 16px;
}

.about-works__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 640px) {
  .about-works__grid {
    grid-template-columns: 1fr;
  }
}

.about-work-card {
  display: block;
  background: #f0f8f8;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-work-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,125,122,0.12);
}

.about-work-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.about-work-card__icon--illust {
  background: rgba(0,125,122,0.1);
  color: #007d7a;
}

.about-work-card__icon--line {
  background: #f0fdf4;
  color: #06C755;
}

.about-work-card__icon--blog {
  background: #fff7ed;
  color: #FFB078;
}

.about-work-card__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2C3E50;
  margin-bottom: 8px;
}

.about-work-card__desc {
  font-size: 0.75rem;
  color: #9ca3af;
  line-height: 1.6;
}

.about-work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #007d7a;
  margin-top: 12px;
  transition: gap 0.2s;
}

.about-work-card:hover .about-work-card__link {
  gap: 8px;
}

/* Price */
.about-price {
  background: #f0f8f8;
  padding: 64px 16px;
}

.about-price__inner {
  max-width: 720px;
  margin: 0 auto;
}

.about-price__note {
  text-align: center;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 24px;
}

/* Contact */
.about-contact {
  background: #f0f8f8;
  padding: 0 16px 64px;
}

.about-contact__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-contact__text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 12px;
}

.about-contact__mail {
  color: #007d7a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-contact__mail:hover {
  color: #005c5a;
}

.about-contact__sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}

.about-sns-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-size: 0.875rem;
  font-weight: 500;
  color: #2C3E50;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-sns-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-sns-btn svg:first-child {
  flex-shrink: 0;
}

/* ===== Work (Portfolio) ===== */
.work-portfolio {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-portfolio__item {
  display: flex !important;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8f0f0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.work-portfolio__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,125,122,0.12);
}

.work-portfolio__item > .wp-block-image {
  margin: 0;
}

.work-portfolio__item > .wp-block-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.work-portfolio__item__body {
  padding: 20px;
  flex: 1;
  display: flex !important;
  flex-direction: column;
}

.work-portfolio__item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #007d7a;
  margin: 0 0 8px;
}

.work-portfolio__item p {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.8;
  margin: 0 0 16px;
  flex: 1;
}

.work-portfolio__item .wp-block-buttons {
  margin-top: auto;
}

.work-portfolio__item .wp-block-button__link {
  background: #007d7a;
  color: #fff;
  border-radius: 999px;
  padding: 10px 24px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.work-portfolio__item .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,125,122,0.25);
}

@media (max-width: 767px) {
  .work-portfolio {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .work-portfolio__item > .wp-block-image img {
    height: 180px;
  }
}

/* ===== WP Block Table ===== */
.wp-block-table thead {
  border-bottom: none !important;
}

.wp-block-table table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border: none !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.wp-block-table thead tr th {
  background: #007d7a !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  padding: 14px 20px !important;
  border: none !important;
  letter-spacing: 0.05em !important;
}

.wp-block-table.wp-block-table thead tr th + th {
  border-left-width: 1px !important;
  border-left-style: solid !important;
  border-left-color: rgba(255, 255, 255, 0.5) !important;
}

.wp-block-table tbody tr td {
  padding: 14px 20px !important;
  font-size: 0.9rem !important;
  color: #2C3E50 !important;
  border: none !important;
  border-bottom: 1px solid #e8f0f0 !important;
}

.wp-block-table tbody tr:last-child td {
  border-bottom: none !important;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #f0f8f8 !important;
}

.wp-block-table.is-style-stripes tbody tr:nth-child(even) {
  background: #fff !important;
}

.wp-block-table figcaption {
  color: #888 !important;
  font-size: 0.8rem !important;
}
