/*
 * おとなりサポート Cocoon子テーマ追加CSS
 * Version: 1.0.0
 */

:root {
  --ot-green-950: #163d31;
  --ot-green-900: #1e4b3c;
  --ot-green-800: #2b5c49;
  --ot-green-100: #e9f0e9;
  --ot-cream: #faf7ef;
  --ot-paper: #fffdf8;
  --ot-beige: #eee4d5;
  --ot-earth: #a64f35;
  --ot-earth-dark: #873d2b;
  --ot-brown: #302a24;
  --ot-muted: #6f675e;
  --ot-line: #dcd3c5;
  --ot-shadow: 0 18px 55px rgba(42, 54, 43, .10);
  --ot-sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --ot-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

body.otonari-designed-page {
  background: var(--ot-cream);
  color: var(--ot-brown);
}

body.otonari-designed-page .entry-header,
body.otonari-designed-page .breadcrumb,
body.otonari-designed-page .sns-share,
body.otonari-designed-page .sns-follow,
body.otonari-designed-page .date-tags,
body.otonari-designed-page .post-update,
body.otonari-designed-page .post-date {
  display: none !important;
}

body.otonari-designed-page .content-in,
body.otonari-designed-page main.main,
body.otonari-designed-page article.article,
body.otonari-designed-page .entry-content {
  width: 100%;
  max-width: none;
}

body.otonari-designed-page main.main,
body.otonari-designed-page article.article {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.otonari-designed-page .entry-content {
  margin: 0;
}

.ot-page,
.ot-page * {
  box-sizing: border-box;
}

.ot-page {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: var(--ot-brown);
  background: var(--ot-cream);
  font-family: var(--ot-sans);
  font-size: 17px;
  line-height: 1.85;
}

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

.ot-page a {
  color: inherit;
  text-underline-offset: .2em;
}

.ot-page :focus-visible,
.ot-mobile-cta:focus-visible {
  outline: 3px solid #d18468;
  outline-offset: 3px;
}

.ot-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.ot-narrow {
  width: min(860px, calc(100% - 48px));
  margin-inline: auto;
}

.ot-section {
  padding: 96px 0;
}

.ot-tint {
  background: var(--ot-green-100);
}

.ot-paper {
  background: var(--ot-paper);
}

.ot-dark {
  background: var(--ot-green-950);
  color: #f8f4eb;
}

.ot-eyebrow {
  margin: 0 0 15px !important;
  color: var(--ot-green-800);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.ot-page h1,
.ot-page h2,
.ot-page h3 {
  margin-top: 0;
  color: var(--ot-green-950);
  line-height: 1.45;
}

.ot-page h1,
.ot-page h2 {
  font-family: var(--ot-serif);
  font-weight: 700;
  letter-spacing: .02em;
}

.ot-page h1 {
  font-size: clamp(2.15rem, 5vw, 4rem);
}

.ot-page h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
}

.ot-page h3 {
  font-size: 1.18rem;
}

.ot-page p {
  margin: 0 0 1.35em;
}

.ot-section-heading {
  margin-bottom: 42px;
}

.ot-section-heading h2 {
  margin-bottom: 0;
}

.ot-lead {
  max-width: 800px;
  font-size: 1.12rem;
}

.ot-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.ot-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none !important;
}

.ot-button-primary {
  background: var(--ot-earth);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(135, 61, 43, .17);
}

.ot-button-primary:hover {
  background: var(--ot-earth-dark);
}

.ot-button-secondary {
  border-color: var(--ot-green-900);
  color: var(--ot-green-950) !important;
  background: transparent;
}

.ot-button-full {
  width: 100%;
}

.ot-text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--ot-green-900) !important;
  font-weight: 800;
}

.ot-home-hero {
  background: linear-gradient(90deg, var(--ot-paper) 0 64%, var(--ot-beige) 64% 100%);
}

.ot-hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  min-height: 720px;
  gap: 64px;
}

.ot-hero-copy {
  padding: 68px 0;
}

.ot-hero-copy h1 {
  margin-bottom: 25px;
  font-size: clamp(2.3rem, 4.3vw, 3.7rem);
}

.ot-hero-copy h1 em {
  color: var(--ot-earth);
  font-style: normal;
}

.ot-hero-photo {
  position: relative;
  align-self: stretch;
  min-height: 620px;
}

.ot-hero-photo img {
  position: absolute;
  width: calc(100% - 24px);
  height: calc(100% - 86px);
  left: 0;
  bottom: 0;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 150px 0 0 0;
}

.ot-photo-caption {
  position: absolute;
  right: 0;
  bottom: 40px;
  min-width: 220px;
  padding: 17px 22px;
  background: var(--ot-green-950);
  color: #fff;
}

.ot-photo-caption strong,
.ot-photo-caption span {
  display: block;
}

.ot-photo-caption span {
  opacity: .76;
  font-size: .76rem;
}

.ot-hero-note {
  margin-top: 22px !important;
  color: var(--ot-muted);
  font-size: .9rem;
}

.ot-page-hero {
  padding: 100px 0 86px;
  background: var(--ot-green-950);
  color: #f7f1e7;
}

.ot-page-hero h1 {
  max-width: 900px;
  margin-bottom: 22px;
  color: #fff;
}

.ot-page-hero .ot-eyebrow {
  color: #e5c8b4;
}

.ot-page-hero .ot-lead {
  color: rgba(255, 255, 255, .82);
}

.ot-page-hero .ot-button-secondary {
  border-color: rgba(255, 255, 255, .7);
  color: #fff !important;
}

.ot-hero-price {
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 15px;
  padding: 14px 22px;
  border-left: 3px solid #d69a7c;
  background: rgba(255, 255, 255, .07);
}

.ot-hero-price strong {
  color: #fff;
  font-family: var(--ot-serif);
  font-size: 2rem;
}

.ot-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ot-service-card {
  position: relative;
  min-height: 320px;
  padding: 44px;
  border-top: 5px solid var(--ot-green-900);
  background: var(--ot-paper);
  box-shadow: var(--ot-shadow);
}

.ot-service-card:nth-child(2) {
  border-color: var(--ot-earth);
}

.ot-service-number {
  position: absolute;
  top: 28px;
  right: 32px;
  color: var(--ot-beige);
  font-family: var(--ot-serif);
  font-size: 3.3rem;
  line-height: 1;
}

.ot-service-card h3 {
  max-width: 80%;
  font-family: var(--ot-serif);
  font-size: 1.65rem;
}

.ot-price {
  color: var(--ot-green-950);
  font-family: var(--ot-serif);
  font-size: 1.6rem;
  font-weight: 800;
}

.ot-price small {
  font-family: var(--ot-sans);
  font-size: .68rem;
}

.ot-note {
  margin-top: 28px !important;
  padding: 18px 22px;
  border-left: 3px solid var(--ot-earth);
  background: rgba(255, 255, 255, .72);
  color: var(--ot-muted);
  font-size: .94rem;
}

.ot-worry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .15);
}

.ot-worry-grid article {
  min-height: 155px;
  padding: 30px;
  background: var(--ot-green-950);
}

.ot-worry-grid span {
  color: #d6b69f;
  font-family: var(--ot-serif);
}

.ot-worry-grid p {
  margin: 18px 0 0;
}

.ot-dark h2,
.ot-dark h3,
.ot-dark .ot-eyebrow {
  color: #fff;
}

.ot-condition-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 46px;
  border: 1px solid var(--ot-line);
  background: var(--ot-cream);
}

.ot-condition-card {
  padding: 32px;
  background: var(--ot-beige);
}

.ot-check-list,
.ot-large-checks {
  margin: 20px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ot-check-list li,
.ot-large-checks li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--ot-line);
}

.ot-check-list li::before,
.ot-large-checks li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--ot-earth);
  font-weight: 800;
}

.ot-representative {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 80px;
  align-items: center;
}

.ot-portrait {
  position: relative;
  padding: 0 32px 32px 0;
}

.ot-portrait::after {
  content: "";
  position: absolute;
  inset: 42px 0 0 32px;
  z-index: 0;
  border: 1px solid var(--ot-green-800);
}

.ot-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 0 85px 0 0;
}

.ot-rate-contact-grid,
.ot-contact-methods,
.ot-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.ot-contact-card,
.ot-method-card {
  padding: 38px;
  background: var(--ot-beige);
}

.ot-method-card {
  border-top: 5px solid var(--ot-green-900);
  background: var(--ot-paper);
  box-shadow: var(--ot-shadow);
  text-decoration: none !important;
}

.ot-method-card:nth-child(2) {
  border-color: var(--ot-earth);
}

.ot-mini-price {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--ot-line);
}

.ot-mini-price strong {
  font-family: var(--ot-serif);
  font-size: 1.45rem;
}

.ot-example-grid,
.ot-scope-grid,
.ot-principles,
.ot-sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ot-example-grid article,
.ot-scope-grid article,
.ot-principles article,
.ot-sitemap-grid section {
  padding: 28px;
  border: 1px solid var(--ot-line);
  background: var(--ot-paper);
}

.ot-example-grid article {
  display: flex;
  min-height: 120px;
  align-items: center;
  background: var(--ot-beige);
  color: var(--ot-green-950);
  font-weight: 800;
}

.ot-scope-grid span,
.ot-principles span {
  color: var(--ot-earth);
  font-family: var(--ot-serif);
  font-weight: 800;
}

.ot-notice {
  margin-top: 32px !important;
  padding: 21px 25px;
  border-left: 4px solid var(--ot-earth);
  background: #f4e6df;
}

.ot-steps {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.ot-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid rgba(30, 75, 60, .18);
}

.ot-steps li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--ot-green-900);
  color: #fff;
}

.ot-steps h3,
.ot-steps p {
  margin-bottom: 4px;
}

.ot-faq {
  border-top: 1px solid var(--ot-line);
}

.ot-faq details {
  border-bottom: 1px solid var(--ot-line);
}

.ot-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 23px 5px;
  color: var(--ot-green-950);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.ot-faq summary::-webkit-details-marker {
  display: none;
}

.ot-faq summary::after {
  content: "+";
  color: var(--ot-earth);
  font-size: 1.3rem;
}

.ot-faq details[open] summary::after {
  content: "−";
}

.ot-faq details p {
  padding: 0 38px 23px 5px;
  color: var(--ot-muted);
}

.ot-extension {
  margin-top: 24px;
  padding: 26px 32px;
  background: var(--ot-green-950);
  color: #fff;
}

.ot-extension strong {
  font-family: var(--ot-serif);
  font-size: 1.35rem;
}

.ot-info-rows > div,
.ot-profile-list > div,
.ot-legal-list > div {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  padding: 23px 0;
  border-bottom: 1px solid var(--ot-line);
}

.ot-info-rows h3,
.ot-info-rows p,
.ot-profile-list dt,
.ot-profile-list dd,
.ot-legal-list dt,
.ot-legal-list dd {
  margin: 0;
}

.ot-profile-list dt,
.ot-legal-list dt {
  color: var(--ot-green-800);
  font-weight: 800;
}

.ot-comparison {
  overflow-x: auto;
}

.ot-comparison table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--ot-paper);
}

.ot-comparison th,
.ot-comparison td {
  padding: 19px;
  border: 1px solid var(--ot-line);
  text-align: left;
}

.ot-comparison thead th {
  background: var(--ot-green-900);
  color: #fff;
}

.ot-comparison tbody th {
  background: var(--ot-beige);
  color: var(--ot-green-950);
}

.ot-guide section {
  position: relative;
  padding: 0 0 45px 58px;
  border-left: 1px solid var(--ot-line);
}

.ot-guide section > span {
  position: absolute;
  top: 0;
  left: -21px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ot-green-950);
  color: #fff;
}

.ot-form-slot {
  padding: 32px;
  border: 2px dashed #b9aa9a;
  background: var(--ot-paper);
  text-align: center;
}

.ot-form-slot code {
  display: block;
  margin-top: 12px;
  padding: 10px;
  background: var(--ot-beige);
  color: var(--ot-brown);
  word-break: break-all;
}

.ot-sitemap-grid section {
  border-top: 4px solid var(--ot-green-900);
}

.ot-sitemap-grid a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ot-line);
  color: var(--ot-green-900) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.ot-cta-band {
  padding: 70px 0;
  background: var(--ot-beige);
}

.ot-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 65px;
}

.ot-cta-inner .ot-button-row {
  min-width: 250px;
  margin: 0;
  flex-direction: column;
}

.ot-mobile-cta {
  display: none;
}

/* Cocoonヘッダーメニューの「相談する」だけに ot-menu-contact を設定 */
.navi-in .menu-item.ot-menu-contact > a,
.mobile-menu-buttons .menu-item.ot-menu-contact > a {
  background: var(--ot-earth);
  color: #fff !important;
}

/* Cocoonフッター */
body.otonari-designed-page #footer,
body.otonari-designed-page .footer {
  background: #112f27;
  color: rgba(255, 255, 255, .78);
}

body.otonari-designed-page #footer a {
  color: #fff;
}

.ot-footer-widget h3 {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .95rem;
}

.ot-footer-widget a {
  display: inline-block;
  margin-bottom: 7px;
}

@media (max-width: 768px) {
  body.otonari-designed-page {
    padding-bottom: 70px;
  }

  .ot-page {
    font-size: 16px;
    line-height: 1.8;
  }

  .ot-shell,
  .ot-narrow {
    width: calc(100% - 32px);
  }

  .ot-section {
    padding: 68px 0;
  }

  .ot-home-hero {
    background: var(--ot-paper);
  }

  .ot-hero-grid {
    display: flex;
    min-height: auto;
    flex-direction: column;
    gap: 0;
  }

  .ot-hero-copy {
    width: calc(100% - 32px);
    padding: 54px 0 40px;
  }

  .ot-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .ot-hero-photo {
    width: 100%;
    min-height: 420px;
    background: var(--ot-beige);
  }

  .ot-hero-photo img {
    width: calc(100% - 24px);
    height: 100%;
    border-radius: 0 70px 0 0;
  }

  .ot-photo-caption {
    right: 0;
    bottom: 18px;
  }

  .ot-button-row {
    flex-direction: column;
  }

  .ot-button {
    width: 100%;
  }

  .ot-service-grid,
  .ot-worry-grid,
  .ot-condition-panel,
  .ot-representative,
  .ot-rate-contact-grid,
  .ot-contact-methods,
  .ot-two-column,
  .ot-example-grid,
  .ot-scope-grid,
  .ot-principles,
  .ot-sitemap-grid,
  .ot-cta-inner {
    grid-template-columns: 1fr;
  }

  .ot-service-card {
    min-height: auto;
    padding: 32px 27px;
  }

  .ot-condition-panel {
    padding: 21px;
  }

  .ot-condition-card {
    padding: 24px;
  }

  .ot-representative {
    gap: 30px;
  }

  .ot-portrait {
    padding: 0 22px 22px 0;
  }

  .ot-portrait img {
    aspect-ratio: 1 / 1;
  }

  .ot-page-hero {
    padding: 68px 0 62px;
  }

  .ot-page-hero h1 {
    font-size: 2.15rem;
  }

  .ot-hero-price {
    display: flex;
    width: 100%;
    justify-content: space-between;
  }

  .ot-info-rows > div,
  .ot-profile-list > div,
  .ot-legal-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .ot-guide section {
    padding-left: 40px;
  }

  .ot-cta-inner {
    gap: 24px;
  }

  .ot-cta-inner .ot-button-row {
    min-width: 0;
  }

  .ot-mobile-cta {
    position: fixed;
    z-index: 9999;
    right: 10px;
    bottom: 8px;
    left: 10px;
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 4px;
    background: var(--ot-earth);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 8px 25px rgba(48, 42, 36, .25);
  }

  .ot-mobile-cta span {
    opacity: .8;
    font-size: .72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ot-page,
  .ot-page * {
    scroll-behavior: auto !important;
  }
}

