/*
Theme Name: Thread Classic
Description: Threadの公開LPを保持する専用テーマ。
Version: 1.0.0
Author: Thread
Text Domain: thread-classic
*/

    /* 色・文字サイズなど、サイト全体の見た目はここから調整できます。 */
    :root {
      --paper: #fdfcf9;
      --white: #fff;
      --ink: #2d302c;
      --muted: #65675f;
      --gold: #d9a62e;
      --gold-ink: #806016;
      --line: #dfdfd4;
      --wash: #f3f2ea;
      --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
      --sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
      --width: 1120px;
    }
    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; scroll-padding-top: 100px; }
    body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.9; letter-spacing: .035em; }
    h1, h2, h3, p, ul, ol, dl { margin: 0; }
    h1, h2, h3 { overflow-wrap: anywhere; }
    a { color: inherit; text-underline-offset: .25em; }
    button, summary { font: inherit; }
    button, a, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
    a, button, summary { outline-offset: 5px; }
    :focus-visible { outline: 3px solid var(--gold-ink); }
    svg { display: block; }
    [hidden] { display: none !important; }
    .wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
    .skip { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 16px; background: var(--ink); color: white; transform: translateY(-160%); }
    .skip:focus { transform: none; }
    .section { padding-block: 100px; }
    .section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 42px; }
    .section-head > p { color: var(--muted); }
    .section-head > p { max-width: 480px; }
    .section-head.stacked { display: block; }
    .section-head.stacked > p { max-width: 760px; margin-top: 22px; }
    .kicker { display: flex; align-items: center; gap: 12px; color: var(--gold-ink); font-size: 12px; font-weight: 600; letter-spacing: .16em; margin-bottom: 18px; }
    .kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); flex: 0 0 auto; }
    h2 { font-family: var(--serif); font-size: clamp(27px, 2.8vw, 35px); font-weight: 500; letter-spacing: .065em; line-height: 1.6; text-wrap: balance; }
    h3 { font-size: 19px; font-weight: 600; line-height: 1.6; }
    .arrow { font-family: var(--sans); display: inline-block; transition: transform .25s ease; }
    .button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 24px; font-size: 15px; font-weight: 600; line-height: 1.6; border: 1px solid var(--gold); background: var(--gold); border-radius: 999px; text-decoration: none; box-shadow: 0 12px 25px rgba(128, 96, 22, .1); transition: background .2s, border-color .2s, transform .2s; }
    .button.secondary { background: transparent; border-color: var(--gold-ink); color: var(--gold-ink); box-shadow: none; }
    .site-header { position: sticky; top: 0; z-index: 30; background: rgba(253, 252, 249, .97); border-bottom: 1px solid var(--line); }
    .header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 28px; }
    .brand { display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; white-space: nowrap; }
    .brand-word { font-family: Georgia, serif; font-size: 35px; font-weight: 600; font-style: italic; letter-spacing: -.055em; line-height: 1; }
    .brand-sub { font-size: 11px; letter-spacing: .15em; color: var(--gold-ink); }
    .header-nav { display: flex; gap: 24px; align-items: center; white-space: nowrap; }
    .header-nav a:not(.button) { font-size: 13px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
    .header-nav .button { min-height: 44px; font-size: 13px; padding: 10px 18px; gap: 20px; }
    /* Instagramアイコンは、公開中のプロフィールへ直接リンクします。 */
    .instagram-entry { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 44px; min-height: 44px; color: var(--muted); text-decoration: none; }
    .instagram-entry svg { width: 24px; height: 24px; flex-shrink: 0; }
    /* Instagramの差し色。文字やメール相談ボタンは従来の色を保ちます。 */
    .instagram-warm { stop-color: #b86b25; }
    .instagram-pink { stop-color: #b73677; }
    .instagram-purple { stop-color: #7653ae; }
    .header-nav .instagram-entry { flex-direction: column; }
    .header-nav .instagram-name { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    a.instagram-entry { color: var(--gold-ink); }
    .mobile-menu { display: none; }
    /* 冒頭は公開版の余白・書体・背景の糸を引き継ぎます。 */
    .hero { position: relative; min-height: 660px; padding-block: 68px 92px; display: grid; align-items: center; overflow: hidden; background: #fffdfa; color: #2f2c28; }
    .hero::after { content: ""; position: absolute; right: -120px; bottom: -150px; width: 520px; height: 520px; border: 1px solid rgba(217, 166, 46, .22); border-radius: 50%; pointer-events: none; }
    .hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 40px; align-items: center; }
    .hero-grid > *, .service-grid > *, .area-grid > *, .contact-grid > * { min-width: 0; }
    .hero-copy { max-width: 760px; }
    .local-label { display: flex; gap: 12px; align-items: center; color: #72540c; font: 600 .875rem/1.8 var(--sans); letter-spacing: .04em; margin-bottom: 14px; }
    .local-label::before { content: ""; width: 34px; height: 1px; flex: 0 0 34px; background: var(--gold); }
    h1 { font-family: var(--serif); font-size: clamp(2.3rem, 4.2vw, 3.55rem); font-weight: 500; line-height: 1.35; letter-spacing: .025em; margin-bottom: 24px; }
    .hero-line { display: block; white-space: nowrap; }
    /* ネット購入品の取付案内。料金を変更するときは、下の料金表も一緒に更新します。 */
    .hero-installation { max-width: 580px; margin-bottom: 24px; padding-left: 20px; border-left: 2px solid var(--gold); }
    .hero-installation h2 { margin-bottom: 10px; color: var(--gold-ink); font: 600 clamp(1.125rem, 1.7vw, 1.375rem)/1.65 var(--sans); letter-spacing: .025em; text-wrap: initial; }
    .hero-installation h2 span { display: inline-block; }
    .installation-copy { color: #686158; font-size: 1rem; line-height: 1.8; }
    .installation-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; font-size: .875rem; }
    .installation-price > span { white-space: nowrap; }
    .installation-price strong { font-size: 1.375rem; font-weight: 600; letter-spacing: .01em; }
    .installation-price small { font-size: .875rem; color: #686158; white-space: nowrap; }
    .installation-note { margin-top: 6px; color: #686158; font-size: .875rem; }
    .hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
    .hero-actions .button { min-height: 52px; padding: 12px 24px; font-size: .95rem; font-weight: 700; line-height: 1.4; }
    .hero-note { margin-top: 20px; color: #686158; font-size: .84rem; }
    .thread-art { position: relative; min-height: 410px; color: var(--gold); pointer-events: none; }
    .thread-drawing { position: absolute; top: 50%; left: 50%; width: 430px; height: 430px; transform: translate(-50%, -50%); overflow: visible; }
    .thread-drawing ellipse { stroke-dasharray: 1; animation: draw-thread 3s cubic-bezier(.35, .05, .3, 1) both; }
    .thread-drawing ellipse:nth-child(2) { animation-delay: .18s; }
    .thread-drawing ellipse:nth-child(3) { animation-delay: .36s; }
    .thread-drawing ellipse:nth-child(4) { animation-delay: .54s; }
    .thread-drawing ellipse:nth-child(5) { animation-delay: .72s; }
    .thread-label { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 230px; padding: 24px 18px; border: 1px solid rgba(217, 166, 46, .55); border-radius: 50%; background: rgba(255, 253, 250, .93); text-align: center; color: #2f2c28; }
    .thread-label strong { display: block; margin-bottom: 4px; font: italic 600 1.5rem/1.8 Georgia, serif; }
    .thread-label span { display: block; color: #686158; font-size: 12px; letter-spacing: .1em; }
    .promise-bar { position: relative; z-index: 2; margin-top: -34px; margin-bottom: 64px; }
    .promise-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; border: 1px solid #e8dfcf; border-radius: 24px; background: var(--white); box-shadow: 0 18px 50px rgba(61, 49, 24, .08); list-style: none; overflow: hidden; }
    .promise-list li { padding: 28px 24px; text-align: center; }
    .promise-list li + li { border-left: 1px solid #e8dfcf; }
    .promise-list strong { display: block; margin-bottom: 4px; font: 600 1.25rem/1.8 var(--serif); }
    .promise-list span { display: block; color: #686158; font-size: .875rem; }
    .concerns { padding-block: 64px; border-bottom: 1px solid var(--line); }
    .concern-list { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
    .concern-list li { padding-block: 20px; border-bottom: 1px solid var(--line); }
    .concern-list h3 { font-size: 17px; margin-bottom: 6px; }
    .concern-list p { font-size: 16px; color: var(--muted); }
    .concern-list li:last-child { grid-column: 1 / -1; }
    .services { background: var(--white); border-block: 1px solid var(--line); }
    .service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
    .service-card { padding: 32px 30px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; scroll-margin-top: 110px; }
    .service-card:first-child { border-left: 1px solid var(--line); }
    .service-meta { display: flex; justify-content: space-between; gap: 12px; width: 100%; font-size: 12px; color: var(--muted); letter-spacing: .12em; }
    .service-meta span:first-child { color: var(--gold-ink); font: 17px Georgia, serif; }
    .service-icon { width: 100%; height: 140px; margin-block: 20px; color: var(--gold-ink); }
    .service-icon svg { width: 100%; height: 100%; }
    .service-card h3 { font-size: 23px; font-weight: 500; font-family: var(--serif); margin-bottom: 9px; }
    .service-detail h4 { font-size: 15px; font-weight: 600; color: var(--gold-ink); margin: 0 0 8px; }
    .service-detail + .service-detail { margin-top: 18px; }
    .service-detail p, .service-card > p { color: var(--muted); font-size: 16px; }
    .service-motto { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; background: var(--wash); padding: 27px 32px; margin-top: 20px; align-items: center; }
    .service-motto strong { font: 500 24px/1.8 var(--serif); }
    .service-motto p { font-size: 14px; color: var(--muted); }
    .service-note { color: var(--muted); font-size: 13px; margin-top: 14px; }
    /* 実際の施工写真はサイト内に保存し、各写真からInstagramの元投稿を開きます。 */
    .works { margin-top: 52px; padding-top: 36px; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
    .works-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
    .works .kicker { margin-bottom: 10px; }
    .works h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); }
    .works-intro { margin-top: 10px; color: var(--muted); font-size: 1rem; }
    .works-head .button { flex: 0 0 auto; gap: 14px; box-shadow: none; }
    .works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
    .works-card { display: block; min-width: 0; text-decoration: none; }
    .works-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--wash); border: 1px solid var(--line); }
    .works-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .works-caption strong { font-size: 1rem; font-weight: 500; }
    .works-caption .arrow { color: var(--gold-ink); }
    .works-note { margin-top: 18px; color: var(--muted); font-size: .875rem; }
    .approach { position: relative; }
    .approach-grid { display: grid; grid-template-columns: .9fr 1fr; gap: 90px; }
    .approach-letter { position: relative; }
    .approach-letter h2 { margin-bottom: 30px; }
    .approach-letter > p:not(.kicker) { margin-bottom: 20px; line-height: 2.1; }
    .signature { margin-top: 33px; display: flex; gap: 23px; align-items: center; }
    .signature .role { display: block; font-size: 12px; color: var(--muted); }
    .signature strong { font: 500 23px/1.8 var(--serif); letter-spacing: .1em; }
    .signature small { display: block; font-size: 9px; letter-spacing: .15em; color: var(--muted); }
    .signature-mark { width: 82px; height: 97px; flex: 0 0 auto; color: var(--gold); }
    .signature.is-revealed .signature-mark path { stroke-dasharray: 1; animation: draw-thread 3.6s ease-in-out both; }
    .principles { list-style: none; padding: 0; border-top: 1px solid var(--line); }
    .principles li { display: grid; grid-template-columns: 35px 1fr; gap: 15px; padding-block: 27px; border-bottom: 1px solid var(--line); }
    .principles .number { font: 16px/2 Georgia, serif; color: var(--gold-ink); }
    .principles h3 { margin-bottom: 8px; }
    .principles p { color: var(--muted); font-size: 15px; }
    /* 料金欄は元の文言と、白い料金表＋薄い背景の条件欄を維持します。 */
    .price { background: var(--paper); }
    .price-panel { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); border: 1px solid #e8dfd0; border-radius: 24px; overflow: hidden; background: var(--white); box-shadow: 0 18px 44px rgba(94, 76, 47, .06); }
    .price-list { padding: 18px 38px; }
    .price-list > div { display: flex; justify-content: space-between; gap: 24px; min-height: 82px; align-items: center; border-bottom: 1px solid #e8dfd0; }
    .price-list > div:last-child { border: 0; }
    .price-list dt { font-size: 16px; font-weight: 700; }
    .price-list dd { margin: 0; padding-block: 12px; color: var(--gold-ink); font: 600 23px/1.5 var(--serif); white-space: nowrap; text-align: right; }
    .price-list .tax-label { margin-right: 4px; font: 500 13px/1.5 var(--sans); }
    .price-list dd small { display: block; margin-top: 4px; color: var(--muted); font: 400 13px/1.6 var(--sans); }
    .payment-note { margin-top: 24px; padding: 22px 26px; border: 1px solid #e8dfd0; border-radius: 12px; background: var(--white); }
    .payment-note h3 { font-size: 17px; margin-bottom: 6px; }
    .payment-note p { font-size: 16px; color: var(--muted); }
    .price-conditions { padding: 36px 38px; border-left: 1px solid #e8dfd0; background: #faf6ee; }
    .price-conditions h3 { font-size: 19px; margin-bottom: 10px; }
    .price-conditions > p { color: var(--muted); font-size: 16px; }
    .price-conditions .price-note { margin-top: 20px; font-size: 13px; line-height: 1.8; }
    .condition-list { padding: 0; list-style: none; margin-top: 22px; }
    .condition-list li { position: relative; border-bottom: 1px solid #e8dfd0; padding: 11px 0 11px 30px; font-size: 16px; }
    .condition-list li::before { content: ""; position: absolute; top: 20px; left: 2px; width: 12px; height: 7px; border-bottom: 2px solid var(--gold-ink); border-left: 2px solid var(--gold-ink); transform: rotate(-45deg); }
    .flow-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
    .flow-list li { position: relative; padding-top: 28px; border-top: 1px solid var(--gold); }
    .flow-list li::before { content: ""; position: absolute; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; top: -4px; left: 0; }
    .flow-number { font: italic 28px Georgia, serif; color: var(--gold-ink); display: block; margin-bottom: 16px; }
    .flow-list h3 { margin-bottom: 12px; }
    .flow-list p { color: var(--muted); font-size: 15px; }
    .flow, .notice { background: var(--wash); }
    .notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 38px; }
    .notice-item { padding-top: 20px; border-top: 1px solid var(--line); }
    .notice-item:last-child { grid-column: 1 / -1; }
    .notice-item h3 { font-size: 17px; margin-bottom: 8px; }
    .notice-item p { font-size: 16px; color: var(--muted); }
    .area { border-top: 1px solid var(--line); padding-block: 75px; }
    .area-grid { display: grid; grid-template-columns: .85fr 1.3fr; gap: 85px; }
    .area-title h2 { margin-bottom: 20px; }
    .area-title > p:not(.kicker) { color: var(--muted); font-size: 15px; }
    .area-token { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; font: italic 30px Georgia, serif; color: var(--gold-ink); }
    .area-token::before { content: ""; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 50%; }
    .info-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding-block: 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
    .info-list > div:first-child { border-top: 1px solid var(--line); }
    .info-list dt { color: var(--muted); }
    .info-list dd { margin: 0; }
    .faq { background: var(--white); border-top: 1px solid var(--line); }
    .faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 62px; }
    .faq-list { border-top: 1px solid var(--line); }
    .faq-list details { border-bottom: 1px solid var(--line); }
    summary { list-style: none; cursor: pointer; position: relative; padding-right: 35px; min-height: 44px; }
    summary::-webkit-details-marker { display: none; }
    summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font: 25px/1 var(--sans); color: var(--gold-ink); }
    details[open] > summary::after { content: "−"; }
    .faq-list summary { padding-block: 22px; font-size: 16px; display: flex; align-items: baseline; gap: 18px; }
    .faq-list summary::before { content: "Q"; font: italic 19px Georgia, serif; color: var(--gold-ink); flex: 0 0 auto; }
    .faq-answer { margin: 0 32px 23px; color: var(--muted); font-size: 15px; }
    .contact { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
    .contact :focus-visible { outline-color: #f3d78f; }
    .contact .kicker { color: #e1ba62; }
    .contact .wrap { position: relative; }
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
    .contact h2 { font-size: clamp(29px, 3vw, 39px); margin-bottom: 23px; }
    .contact h2 span { display: inline-block; white-space: nowrap; }
    .contact-copy { font-size: 15px; color: #d0d2c7; max-width: 410px; }
    .contact-options { display: grid; gap: 12px; }
    .contact-link { display: flex; align-items: center; gap: 22px; min-height: 98px; padding: 23px 28px; text-decoration: none; border: 1px solid #72776a; }
    .contact-link.mail { background: var(--gold); border-color: var(--gold); color: var(--ink); }
    .contact-link svg { width: 24px; height: 24px; flex: 0 0 auto; }
    .contact-link > span:not(.arrow) { flex: 1; min-width: 0; }
    .contact-link b { display: block; font-size: 17px; font-weight: 600; }
    .contact-link small { display: block; font-size: 12px; letter-spacing: .025em; }
    .contact-link.phone b { font: 29px Georgia, serif; letter-spacing: .015em; }
    .contact-thread { position: absolute; top: -90px; left: -320px; width: 840px; height: 600px; opacity: .12; pointer-events: none; color: var(--gold); }
    .footer { padding-block: 38px; }
    .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
    .footer .brand-word { font-size: 32px; }
    .footer p { font-size: 12px; color: var(--muted); }
    .footer-links { display: flex; align-items: center; gap: 25px; }
    .back-top { min-height: 44px; min-width: 44px; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; }
    .mobile-contact { display: none; }
    /* 動かすのは装飾だけです。本文やボタンは最初から表示します。 */
    .is-revealed .kicker::before { transform-origin: left; animation: draw-accent .8s ease-out; }
    @keyframes draw-thread { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
    @keyframes draw-accent { from { transform: scaleX(0); } to { transform: scaleX(1); } }
    @media (hover: hover) {
      .button:hover { background: #e7b746; border-color: #e7b746; transform: translateY(-2px); }
      .button.secondary:hover { background: var(--wash); border-color: var(--gold-ink); }
      a:hover .arrow { transform: translateX(4px); }
      .header-nav a:not(.button):hover { color: var(--gold-ink); }
      .service-card:hover .service-icon { color: #a97b14; }
      .contact-link:hover { border-color: var(--gold); }
      .contact-link.mail:hover { background: #e7b746; }
      summary:hover { color: var(--gold-ink); }
    }
    @media (max-width: 1000px) {
      .header-nav { gap: 18px; }
      .header-nav a:not(.button) { font-size: 12px; }
      .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(240px, .65fr); gap: 20px; }
      .thread-art { min-height: 380px; transform: scale(.88); }
      .hero-actions .button { font-size: 14px; padding-inline: 15px; }
      .section-head, .approach-grid, .area-grid, .contact-grid { gap: 38px; }
      .service-card { padding-inline: 22px; }
      .price-list { padding-inline: 26px; }
      .price-conditions { padding-inline: 26px; }
      .contact-link { padding-inline: 20px; gap: 15px; }
    }
    /* ヘッダーだけは早めにメニュー表示に切り替え、項目の折り返しを防ぎます。 */
    @media (max-width: 960px) {
      .header-inner { min-height: 70px; }
      .brand-word { font-size: 31px; }
      .header-nav { display: none; }
      /* 標準のdetailsを使い、JavaScriptが動かない環境でも開閉できます。 */
      .mobile-menu { display: block; }
      .mobile-menu > summary { width: 46px; min-height: 46px; display: grid; place-items: center; padding: 0; border: 1px solid #e8dfcf; border-radius: 50%; background: var(--white); }
      .mobile-menu > summary::after { content: none; }
      .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 1px; background: var(--ink); transition: transform .2s; }
      .menu-icon { position: relative; }
      .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
      .menu-icon::before { top: -6px; }
      .menu-icon::after { top: 6px; }
      .mobile-menu[open] .menu-icon { background: transparent; }
      .mobile-menu[open] .menu-icon::before { transform: translateY(6px) rotate(45deg); }
      .mobile-menu[open] .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
      .mobile-menu nav { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 140px); overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; box-shadow: 0 15px 24px #2d302c0d; display: grid; }
      .mobile-menu nav a { text-decoration: none; padding: 12px 8px; border-bottom: 1px solid var(--line); min-height: 48px; }
      .mobile-menu nav .button { margin-top: 15px; border: 0; }
      .mobile-menu .instagram-entry { justify-content: flex-start; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); min-height: 48px; }
    }
    @media (max-width: 780px) {
      html { scroll-padding-top: 86px; scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
      .wrap { width: calc(100% - 40px); }
      .section { padding-block: 64px; }
      .hero { min-height: auto; padding-block: 40px 104px; }
      .hero-grid { display: block; }
      h1 { font-size: clamp(1.6rem, 8vw, 2.35rem); line-height: 1.42; }
      .hero-line { white-space: normal; }
      .hero-copy { position: relative; z-index: 2; }
      .hero-actions { gap: 10px; }
      .hero-actions .button { font-size: .875rem; padding-inline: 18px; }
      .thread-art { position: absolute; right: -190px; bottom: -20px; width: 430px; min-height: 360px; opacity: .3; transform: scale(.7); }
      .thread-label { display: none; }
      .promise-bar { margin-top: -50px; margin-bottom: 44px; }
      .promise-list { grid-template-columns: 1fr; }
      .promise-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; padding: 18px 22px; text-align: left; }
      .promise-list li + li { border-top: 1px solid #e8dfcf; border-left: 0; }
      .promise-list strong { margin-bottom: 0; }
      .section-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
      .section-head > p { max-width: 580px; }
      .concerns { padding-block: 40px; }
      .concern-list { grid-template-columns: 1fr 1fr; }
      .service-card { padding-inline: 17px; }
      .service-icon { height: 110px; }
      .service-card h3 { font-size: 21px; }
      .service-motto { grid-template-columns: 1fr; gap: 8px; padding: 25px; }
      .approach-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
      .approach-letter h2 { font-size: 27px; }
      .price-panel { grid-template-columns: 1fr; }
      .price-conditions { border-left: 0; border-top: 1px solid #e8dfd0; }
      .flow-list { gap: 25px; }
      .area-grid, .faq-grid { grid-template-columns: 1fr; gap: 30px; }
      .area-token { display: none; }
      .contact-grid { grid-template-columns: 1fr; gap: 32px; }
      .contact-copy { max-width: 550px; }
      .contact-options { grid-template-columns: 1fr 1fr; }
      .contact-link { min-height: 95px; padding-inline: 15px; gap: 11px; }
      .contact-link svg { display: none; }
      .contact-link b { font-size: 15px; }
      .contact-link.phone b { font-size: 25px; }
      .contact h2 { font-size: clamp(26px, 7.3vw, 29px); }
      .footer-inner { align-items: start; }
      .footer-links { gap: 14px; }
      body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
      .mobile-contact { position: fixed; display: grid; grid-template-columns: .8fr 1.5fr; bottom: 0; left: 0; right: 0; z-index: 25; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: rgba(253, 252, 249, .98); border-top: 1px solid var(--line); }
      .mobile-contact a { min-height: 46px; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 14px; font-weight: 600; gap: 10px; border: 1px solid var(--line); border-radius: 3px; }
      .mobile-contact a:last-child { background: var(--gold); border-color: var(--gold); }
    }
    /* 中間の画面幅でも、文字や料金が窮屈にならないよう一列にします。 */
    @media (max-width: 700px) {
      .concern-list { grid-template-columns: 1fr; }
      .service-grid { grid-template-columns: 1fr; border-top: 0; gap: 24px; }
      .service-card { display: grid; grid-template-columns: 1fr 100px; column-gap: 12px; padding: 23px 22px; border: 1px solid var(--line); }
      .service-meta { grid-column: 1 / -1; margin-bottom: 19px; }
      .service-icon { grid-column: 2; grid-row: 2; height: 90px; margin: 0; align-self: center; }
      .service-card h3 { font-size: 24px; grid-column: 1; grid-row: 2; align-self: center; }
      .service-detail, .service-card > p { grid-column: 1 / -1; margin-top: 18px; }
      .service-motto { padding: 24px 22px; }
      .service-motto strong { font-size: 22px; }
      .works { margin-top: 36px; padding-top: 30px; }
      .works-head { align-items: flex-start; flex-direction: column; gap: 20px; }
      .works-head .button { width: 100%; }
      .works-grid { grid-template-columns: repeat(3, minmax(240px, 82%)); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 5px 14px; margin: -5px -5px 0; }
      .works-grid li { scroll-snap-align: start; }
      .approach-grid { grid-template-columns: 1fr; gap: 35px; }
      .approach-letter h2 { font-size: 30px; margin-bottom: 23px; }
      .approach-letter > p:not(.kicker) { font-size: 16px; }
      .principles li { padding-block: 21px; }
      .price-list { padding-inline: 22px; }
      .price-list > div { min-height: 74px; }
      .price-list dd { font-size: 21px; }
      .price-conditions { padding: 26px 22px; }
      .flow-list { grid-template-columns: 1fr; gap: 0; }
      .flow-list li { border-top: 0; border-left: 1px solid var(--gold); padding: 0 0 32px 25px; margin-left: 4px; }
      .flow-list li:last-child { padding-bottom: 0; }
      .flow-list li::before { top: 12px; left: -4px; }
      .flow-number { font-size: 23px; margin-bottom: 8px; }
      .flow-list h3 { margin-bottom: 8px; }
      .notice-grid { grid-template-columns: 1fr; }
      .info-list > div { grid-template-columns: 65px 1fr; gap: 20px; }
      .faq-list summary { font-size: 15px; gap: 12px; }
      .faq-answer { margin-left: 27px; margin-right: 8px; }
      .contact-options { grid-template-columns: 1fr; }
      .contact-link { padding: 21px; gap: 17px; }
      .contact-link svg { display: block; }
      .contact-link b { font-size: 17px; }
      .contact-link.phone b { font-size: 28px; }
      .footer { padding-block: 30px; }
      .footer-inner { display: block; }
      .footer-links { margin-top: 20px; justify-content: space-between; }
    }
    @media (max-width: 400px) {
      .hero-actions .button { flex: 1 1 auto; padding-inline: 14px; }
      .service-card { grid-template-columns: minmax(0, 1fr) 80px; padding-inline: 18px; }
      .service-card h3 { font-size: 22px; }
      .price-list { padding-inline: 16px; }
      .price-list > div { gap: 10px; }
      .price-list dd { font-size: 19px; }
      .price-list dt { font-size: 15px; }
      .contact-link svg { display: none; }
      .contact-link.phone b { font-size: 25px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }
  
/* 管理バーと追加ページの表示調整 */
body.admin-bar .site-header { top: 32px; }
.thread-page { min-height: 60vh; padding-block: 70px; }
.thread-page h1 { margin-bottom: 32px; }
.thread-page .entry-content { max-width: 850px; overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content a { text-decoration: underline; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }
