/*
Theme Name: Yamasho
Theme URI: https://example.com
Author: Yamasho
Author URI: https://example.com
Description: Yamasho original WordPress theme
Version: 1.0
*/

/* =========================
   TOP直下：境界ウェーブ
   ========================= */
.wave-surround-section-bottom {
  margin-left: calc(-50vw + 50%);
  width: 100vw;
  position: relative;
  background-color: #ad8e8711;
  overflow: hidden;
  padding: 60px 20px 100px;
}

.wave-bottom svg {
  transform: rotate(180deg);
  margin-top: -1px;
}

/* =========================
   トップビュー
========================= */
:root {
  --ink: #333;
  --muted: #666;
  --white: #fff;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  --sp-hero-height: clamp(320px, 65svh, 520px);
}

html,
body {
  font-family:
    "游明朝体", "Yu Mincho", "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN",
    "MS P明朝", "MS PMincho", serif !important;
  font-weight: 800 !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #fafafa;
}

.site-body,
.site-content,
.wrap,
.container,
.l-container,
.vk-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  background: none !important;
}

.section-visual {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  position: relative;
  overflow: hidden;
}

.entry-content .section-visual {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50svw;
  margin-right: -50svw;
  width: 100svw;
  max-width: 100svw !important;
  overflow: hidden;
}

.visual-inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}

.visual-right {
  position: absolute !important;
  inset: 0 !important;
  padding: 0 !important;
  z-index: 1;
}

.visual-img {
  display: block !important;
  width: 100svw !important;
  height: 100%;
  object-fit: cover !important;
  object-position: 60% center;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.visual-img-pc {
  display: block !important;
}

.visual-img-sp {
  display: none !important;
}

.visual-left {
  position: absolute;
  top: 35%;
  left: clamp(20px, 6vw, 60px);
  transform: translateY(-50%);
  z-index: 2;
  max-width: 40%;
  color: var(--ink);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(12px, 2.4vw, 28px);
  align-items: center;
}

.visual-sub-vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.6;
  color: #fff;
  margin: 0;
}

.visual-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
  display: grid;
  gap: 0.2em;
  writing-mode: horizontal-tb;
  letter-spacing: 0;
}

.visual-title .line {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.visual-title ruby {
  ruby-position: over !important;
  ruby-align: center;
  letter-spacing: 0;
}

.visual-title rb,
.visual-title rt {
  letter-spacing: 0;
}

.visual-title rt {
  font-size: 0.28em;
  color: #fff;
  line-height: 1;
  margin: 0;
  padding: 0;
  transform: translateY(-15%);
  margin-left: -10px;
}

.feature-list {
  position: absolute;
  bottom: clamp(8px, 2vw, 20px);
  left: clamp(20px, 4vw, 40px);
  z-index: 3;
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  box-shadow: var(--shadow);
  width: clamp(120px, 20vw, 130px);
  height: clamp(120px, 20vw, 130px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px;
}

.feature-ttl {
  margin: 0 0 4px;
  font-weight: 800;
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--ink);
  min-height: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-txt {
  margin: 0;
  font-size: clamp(11px, 1.8vw, 13px);
  line-height: 1.4;
  color: var(--muted);
}

.info-list {
  max-width: 1100px;
  margin: clamp(24px, 4vw, 40px) auto;
  padding: 0 16px;
  display: flex;
  gap: clamp(12px, 2vw, 20px);
  list-style: none;
}

.info-item {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.info-text {
  flex: 1;
}

.info-ttl {
  margin: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}

.info-txt {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.info-arrow {
  font-size: 18px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .info-list {
    display: block !important;
  }
}

@media (min-width: 627px) {
  .visual-inner {
    min-height: 100svh !important;
  }

  .visual-img {
    height: 100svh !important;
    width: 100svw !important;
  }

  .visual-img-pc {
    display: block !important;
  }

  .visual-img-sp {
    display: none !important;
  }
}

@media (max-width: 626px) {
  .visual-inner {
    min-height: var(--sp-hero-height) !important;
  }

  .visual-right {
    position: absolute !important;
    inset: 0 !important;
    padding: 0 !important;
  }

  .visual-img {
    width: 100svw !important;
    height: var(--sp-hero-height) !important;
    object-fit: cover !important;
    object-position: center center;
  }

  .visual-img-pc {
    display: none !important;
  }

  .visual-img-sp {
    display: block !important;
  }

  .visual-left {
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    text-align: center;
    gap: 12px;
  }
  .visual-title .line {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.2;
  }

  .visual-sub-vertical {
    font-size: 12px;
    color: #fff;
  }

  .feature-list {
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    padding: 0;
    margin: 0;
    z-index: 3;
  }

  .feature-item {
    width: clamp(100px, 28vw, 130px) !important;
    height: clamp(100px, 28vw, 130px) !important;
    padding: 14px !important;
  }

  .feature-ttl {
    font-size: clamp(14px, 3vw, 18px) !important;
  }

  .feature-txt {
    font-size: clamp(11px, 2.2vw, 13px) !important;
  }
}

@media (max-width: 520px) {
  .visual-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    top: 5%;
  }
  .visual-sub-vertical {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 12px;
    order: -1;
    margin: 0;
  }
  .visual-title {
    text-align: center;
  }
  .feature-item {
    width: clamp(70px, 22vw, 90px);
    height: clamp(70px, 22vw, 90px);
    padding: 8px;
  }
  .feature-ttl {
    font-size: clamp(11px, 2.5vw, 14px);
  }
  .feature-txt {
    font-size: clamp(9px, 2vw, 11px);
  }
}

@media (max-width: 420px) {
  .feature-item {
    width: clamp(60px, 20vw, 80px);
    height: clamp(60px, 20vw, 80px);
    padding: 6px;
  }
  .feature-ttl {
    font-size: clamp(10px, 2.4vw, 13px);
  }
  .feature-txt {
    font-size: clamp(8px, 2vw, 11px);
  }
}

/* アニメーション（元のまま） */
.js-fadeUp {
  opacity: 0;
  translate: 0 28px;
}
.js-fadeUp.is-animated {
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.visual-left .visual-sub-vertical.is-animated {
  animation-delay: 0.2s;
}
.visual-left .line:nth-child(1).is-animated {
  animation-delay: 0.5s;
}
.visual-left .line:nth-child(2).is-animated {
  animation-delay: 0.8s;
}
.feature-list .feature-item:nth-child(1).is-animated {
  animation-delay: 1.2s;
}
.feature-list .feature-item:nth-child(2).is-animated {
  animation-delay: 1.5s;
}
.feature-list .feature-item:nth-child(3).is-animated {
  animation-delay: 1.8s;
}

/* =========================
  タイトル
========================= */
:root {
  --ito-red: #d63a3a;
}

.ito-section {
  padding: 40px 20px 20px;
}

.ito-title {
  text-align: center;
}

.ito-title__text {
  display: inline-block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ito-red);
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.ito-title__line {
  width: min(720px, 92vw);
  height: 40px;
  margin: 12px auto 0;
  display: block;
}

.ito-line {
  fill: none;
  stroke: var(--ito-red);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

@media (max-width: 768px) {
  .ito-title__text {
    font-size: 18px;
  }
}

/* =========================
 メディア紹介
========================= */
.media-video {
  padding: 5px 20px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.media-video__lead {
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.9;
  font-size: 20px;
}

.media-video__lead p {
  margin: 0 0 6px;
}

.media-video__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.media-video__embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.media-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.text-red {
  color: #d63a3a;
  font-weight: 700;
}

@media (max-width: 768px) {
  .media-video__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
  料金
========================= */
.nyukai {
  background: #eef0e6;
  padding: 24px 16px;
}

.nyukai__inner {
  max-width: 720px;
  margin: 0 auto;
  color: #2a2a2a;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
}

.nyukai__pricebox {
  border: 1px dashed #8a8a8a;
  background: #eef0e6;
}

.nyukai__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr;
  grid-template-rows: 56px 72px 86px;
}

.nyukai__grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nyukai__blank {
  border-right: 1px dashed #8a8a8a;
  border-bottom: 1px dashed #8a8a8a;
}

.nyukai__rightHead {
  border-bottom: 1px dashed #8a8a8a;
  font-size: 12px;
  font-weight: 800;
  padding: 0 10px;
  text-align: center;
}

.nyukai__leftMiddle {
  border-right: 1px dashed #8a8a8a;
  border-bottom: 1px dashed #8a8a8a;
  font-weight: 700;
}

.nyukai__priceRow--main {
  border-bottom: 1px dashed #8a8a8a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nyukai__leftSub {
  border-right: 1px dashed #8a8a8a;
  border-bottom: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px;
  text-align: center;
}

.nyukai__leftSub p {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.nyukai__priceRow--sub {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.nyukai__miniBtn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  background: #2d8b1f;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.nyukai__list {
  margin: 14px 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.nyukai__list li {
  position: relative;
  padding-left: 18px;
}

.nyukai__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2d8b1f;
  font-weight: 900;
}

.nyukai__notice {
  text-align: center;
}

.nyukai__noticeBtn {
  background: #2d8b1f;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.nyukai__notes {
  margin-top: 10px;
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  text-align: left;
  font-size: 11px;
  line-height: 1.6;
  color: #666;
}

.nyukai__notes p {
  margin: 0 0 6px;
}

.nyukai__notes p:last-child {
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .nyukai__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .nyukai__grid > div {
    border-right: none !important;
  }

  .nyukai__blank {
    display: none;
  }

  .nyukai__rightHead,
  .nyukai__leftMiddle,
  .nyukai__priceRow--main,
  .nyukai__leftSub,
  .nyukai__priceRow--sub {
    border-bottom: 1px dashed #8a8a8a;
    padding: 12px 10px;
  }

  .nyukai__priceRow--sub {
    border-bottom: none;
  }
}

/* =========================
  よくある質問
========================= */
.modern-faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
  background: #ffffff;
  font-family: sans-serif;
}

.modern-faq-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
}

.faq-item {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
  transition: all 0.3s ease;

  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.faq-item.show {
  opacity: 1;
  transform: translateY(0);
}

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  text-align: left;
  position: relative;
}

.faq-text {
  flex: 1;
  margin-left: 12px;
  font-weight: bold;
  color: #333;
}

.faq-toggle-icon {
  font-size: 18px;
  color: #ffa000;
  margin-left: 12px;
  margin-top: 2px;
}

.faq-circle {
  all: unset;
  font-weight: bold;
  color: #6baa75;
  font-size: 18px;
  flex-shrink: 0;
  display: inline-block;
  width: 20px;
  line-height: 1;
  margin-top: 3px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-answer-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 16px;
}

.faq-answer-inner p {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .modern-faq {
    padding: 40px 16px;
  }

  .modern-faq-title {
    font-size: 22px;
    margin-bottom: 30px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-text {
    font-size: 17px;
  }

  .faq-toggle-icon {
    font-size: 16px;
  }

  .faq-circle {
    font-size: 16px;
    width: 18px;
    margin-top: 2px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer-inner p {
    font-size: 17px;
    line-height: 1.5;
  }
}

/* =========================
  CTA
========================= */
:root {
  --ink: #222;
  --muted: #666;
  --accent: #5bbe91;
  --white: #fff;
}

.contact-sec {
  background: var(--accent);
  color: var(--white);
  padding: clamp(40px, 6vw, 80px) 16px;
  text-align: center;
}

.contact-head {
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 800;
  margin: 0 0 6px;
}

.contact-sub {
  font-size: 12px;
  letter-spacing: 0.1em;
  margin: 0 0 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.contact-item {
  padding: 10px 16px;
  position: relative;
}

.contact-item:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.icon {
  margin-bottom: 10px;
}

.icon img {
  width: 70px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.contact-ttl {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 12px;
}

.contact-tel {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
}

.note {
  font-size: 12px;
  color: #ddd;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn:hover {
  background: #eee;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    border: none;
  }

  .contact-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }

  .contact-item:last-child {
    border-bottom: none;
  }

  .contact-item:not(:last-child) {
    border-right: none;
  }
}

/* =========================
  会社概要
========================= */
.company-profile {
  width: min(100%, 1000px);
  margin: 24px auto;
  padding: 0 40px;
  box-sizing: border-box;
  font-family:
    "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN",
    "Hiragino Mincho Pro", serif;
}

.company-profile .table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #f3d7e3;
}

.company-profile .table tr {
  border-bottom: 1px solid #f3d7e3;
}

.company-profile .table tr:last-child {
  border-bottom: none;
}

.company-profile .table th {
  width: 220px;
  background: #ffeaf1;
  color: #6c5a50;
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  vertical-align: top;
  letter-spacing: 0.02em;
}

.company-profile .table td {
  background: #fff;
  color: #6c5a50;
  padding: 10px 12px;
  font-weight: 500;
}

.company-profile .table a {
  color: #e86b8f;
  text-decoration: none;
  word-break: break-all;
  font-weight: 600;
}

.company-profile .table a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .company-profile {
    padding: 0 20px;
  }

  .company-profile .table th {
    width: 38%;
  }
}
