/* ■ レスポンシブ（@mediaはこのファイルだけに置く。広い幅から順に並べる） */
/* 共通の値は :root の変数だけ切り替える（変数の一覧は token.css）。個別の調整は下に普通のルールで書く */

/* ◆ 901〜1200px（PCを少し詰める） */
@media (min-width:901px) and (max-width:1200px){
.site-header__inner{gap:20px}
.site-nav{gap:14px;font-size:var(--fs-sm)}
.site-nav__cta{padding-inline:16px}
.hero{column-gap:32px;padding-inline:40px}
.hero h1{font-size:44px}
.hero__lead{font-size:var(--fs-lg)}
.devices{height:530px}
.devices__pc{top:70px}
.devices__sp{width:150px;bottom:20px}
.plan-card{padding:32px 20px 24px}
.plan-card h3{font-size:21px}
.plan-card .plan-card__price{display:block;font-size:34px}
.plan-card__price small{display:block;margin:0;text-align:center}
.plan-card ul{width:auto;font-size:13px}
}

/* ◆ 〜1100px（タブレット） */
@media (max-width:1100px){
.purchase-layout{grid-template-columns:minmax(0,1fr) 300px;gap:0 24px}
.mypage-shell{grid-template-columns:210px minmax(0,1fr)}
.mypage-sidebar{padding-inline:14px}
.mypage-dashboard{grid-template-columns:minmax(0,1fr) minmax(260px,.8fr)}
.mypage-product-card{grid-template-columns:92px minmax(0,1fr)}
.mypage-product-card>img{width:92px}
.mypage-next-action{grid-template-columns:42px minmax(0,1fr)}
.mypage-next-action .button{grid-column:2;justify-self:start}
.hearing-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.8fr)}
:root{
  --space-section:76px;
  --space-x:32px;
  --gap-grid:18px;
  --pad-card:24px 14px;
  --fs-h3-m:18px;
  --fs-h2:32px;
}
.reason-list{gap:12px}
.reason-list li{aspect-ratio:auto;min-height:208px;padding:20px 8px}
.reason-list h3{font-size:14px}
.flow-grid{--flow-gap:32px}
.section--seo{gap:32px}
.detail-hero__inner{gap:32px}
.detail-hero h1{font-size:54px}
.recommend-grid--four{grid-template-columns:repeat(2,minmax(0,1fr))}
.catalog-tools{grid-template-columns:1fr;gap:18px}
.search-box{max-width:360px}
.catalog-grid{column-gap:22px}
.catalog-card__actions{grid-template-columns:1fr}
.seo-preview__scene{height:430px}
.seo-preview__sp{width:155px}
.search-demo__body{padding:18px 15px}
.search-demo--mobile .search-demo__body{min-height:280px;padding:20px 10px}
}

/* ◆ 〜900px（メニュー・料金・ファーストビューを1列に） */
@media (max-width:900px){
.purchase-intro__grid{gap:24px}
.purchase-intro__copy h1{font-size:var(--fs-h2-s)}
.purchase-layout,.purchase-layout.is-confirmation-view{grid-template-columns:1fr;max-width:calc(760px + 2 * var(--space-x))}
.purchase-plan-section,.purchase-summary,.purchase-form-column,.purchase-confirmation-main,.purchase-confirmation-summary{grid-column:1;grid-row:auto}
.purchase-summary{position:static}
.purchase-confirm-card{margin-bottom:16px}
.completion-layout{grid-template-columns:minmax(0,1fr)}
.completion-layout .purchase-summary{grid-row:1}
.completion-layout .completion-main{grid-row:2}
.completion-summary .purchase-summary__inner{position:static}
.admin-grid{grid-template-columns:minmax(0,1fr)}
:root{
  --header-h:68px;
  --header-w:calc(100% - 40px);
}
.menu-open{overflow:hidden}
.detail-hero__inner{grid-template-columns:1fr}
.site-header__inner{gap:12px}
.brand__mark{width:30px;height:23px}
.brand__text strong{position:relative;top:2px;font-size:15px}
.nav-toggle{position:relative;z-index:22;display:grid;gap:5px;width:42px;height:42px;place-content:center;border:1px solid #ddd4c9;border-radius:50%;background:#fff}
.nav-toggle>span:not(.sr-only){display:block;width:17px;height:1px;background:#302920;transition:transform .2s}
.nav-toggle[aria-expanded=true]>span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded=true]>span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded=true]>span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.site-nav{position:absolute;top:100%;left:0;right:0;display:none;align-items:stretch;gap:0;max-height:calc(100dvh - var(--header-h));padding:10px 20px 22px;overflow-y:auto;border-bottom:1px solid var(--line);background:var(--paper);box-shadow:0 14px 20px rgba(44,34,22,.08);white-space:normal}
.site-nav.is-open{display:grid}
.site-nav>a:not(.button){padding:12px 4px;border-bottom:1px solid #eee8df;font-size:13px}
.site-nav__cta{margin-top:14px}
.hero{display:flex;flex-direction:column;align-items:stretch;gap:0;min-height:0;padding:0 32px 24px}
.hero__content{max-width:600px;margin:auto;padding:36px 0 16px}
.hero h1{font-size:40px}
.devices{flex:none;max-width:600px;height:520px;margin:auto}
.devices__pc{top:12px}
.devices__sp{bottom:4px}
.plan-grid{grid-template-columns:1fr;gap:34px;max-width:430px;margin-top:38px}
.plan-card--recommended{transform:none}
.plan-card .plan-card__intro,.plan-card ul{min-height:0}
}

/* ◆ 〜760px（スマホ） */
@media (max-width:760px){
.purchase-intro{padding:20px 22px 34px}
.purchase-intro__grid{grid-template-columns:1fr;gap:22px;margin-top:18px}
.purchase-intro__copy h1{font-size:var(--fs-h3-l)}
.purchase-intro__visual{max-width:560px}
.purchase-intro__visual-sp{width:21%;border-width:4px;border-radius:12px}
.purchase-steps{padding:16px 12px}
.purchase-steps ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.purchase-steps li{flex-direction:column;gap:6px;min-width:0;padding:0 4px;font-size:var(--fs-xs);line-height:1.35;text-align:center}
.purchase-steps li>span{width:28px;height:28px;font-size:var(--fs-md)}
.purchase-steps li>b{max-width:100%;overflow-wrap:anywhere}
.purchase-layout{gap:0;padding-bottom:54px}
.purchase-term{grid-template-columns:1fr;padding:18px 14px;gap:10px}
.purchase-fields{grid-template-columns:1fr;gap:18px}
.purchase-field-wide{grid-column:auto}
.purchase-summary__inner{padding:20px 18px}
.purchase-confirm-card__heading,.purchase-confirmation__subheading{align-items:flex-start;flex-direction:column;gap:10px}
.purchase-confirmation__list>div{grid-template-columns:1fr;gap:3px;padding:11px 0}
.purchase-template-card{grid-template-columns:72px minmax(0,1fr);gap:12px;padding:12px}
.purchase-template-card>img{width:72px}
.completion-hero{padding:32px 20px 36px}
.completion-flow--data{grid-template-columns:1fr}
.flow-grid--icons li{padding:20px 16px}
.completion-return{align-items:stretch;flex-direction:column;gap:8px;text-align:center}
.completion-return .button{width:100%}
.mypage-shell{display:block;min-height:0}
.mypage-sidebar{position:relative;top:auto;height:auto;overflow:visible;padding:13px 18px;border-right:0;border-bottom:1px solid var(--line)}
.mypage-sidebar>.eyebrow,.mypage-sidebar h2{display:none}
.mypage-sidebar__toggle{display:flex;width:100%;justify-content:space-between;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--navy);font:600 var(--fs-md) var(--font-body)}
.mypage-navigation{display:none;grid-template-columns:1fr 1fr;padding-top:8px}
.mypage-sidebar.is-open .mypage-navigation{display:grid}
.mypage-navigation a{min-height:40px;padding:7px 9px;font-size:var(--fs-md)}
.mypage-navigation form{grid-column:1/-1;margin:8px 0 0}
.mypage-content{padding-block:16px 30px}
.mypage-breadcrumb{margin-bottom:12px}
.mypage-welcome{margin-bottom:20px;padding:22px 20px;border-radius:12px}
.mypage-welcome::after{right:-82px;top:-72px}
.mypage-welcome h1{font-size:var(--fs-h3-l);line-height:1.6}
.mypage-section__title{align-items:flex-start}
.mypage-section__title>div{display:block}
.mypage-dashboard{grid-template-columns:minmax(0,1fr);grid-template-areas:"progress" "product" "hearing" "payments" "site" "contract" "account" "news"}
.mypage-dashboard--ending{grid-template-areas:"product" "payments" "site" "contract" "account" "news"}
.mypage-dashboard__main,.mypage-dashboard__side{display:contents}
.mypage-progress-card{grid-area:progress}
.mypage-product-card{grid-area:product}
.mypage-hearing-card{grid-area:hearing}
.mypage-payments-card{grid-area:payments}
.mypage-site-card{grid-area:site}
.mypage-contract-card{grid-area:contract}
.mypage-account-card{grid-area:account}
.mypage-news-card{grid-area:news}
.news-compact li,.news-list li{grid-template-columns:minmax(0,1fr);padding:14px 2px}
.news-strip{grid-template-columns:minmax(0,1fr);width:calc(100% - 44px);gap:6px 0;padding:16px 0}
.news-strip .news-compact li{grid-template-columns:minmax(0,1fr);gap:0;padding:4px 0}
.news-strip .text-link{grid-column:auto;justify-self:center;margin-top:8px}
.news-article h1{font-size:var(--fs-h3-l)}
.news-article p{font-size:var(--fs-md)}
.mypage-status{white-space:normal}
.mypage-timeline{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px}
.mypage-timeline::before{display:none}
.mypage-next-action{grid-template-columns:42px minmax(0,1fr)}
.mypage-next-action .button{grid-column:2;justify-self:start}
.hearing-layout{grid-template-columns:1fr}
.hearing-side{grid-row:1}
.hearing-field-grid,.hearing-choice-group{grid-template-columns:1fr}
.hearing-materials__row{grid-template-columns:1fr}
.hearing-actions{align-items:stretch;flex-direction:column}
.hearing-actions .button{width:100%}
.hearing-review-list>div{grid-template-columns:1fr;gap:3px}
.mypage-product-card{grid-template-columns:92px minmax(0,1fr)}
.mypage-product-card>img{width:92px}
.mypage-hearing-status{grid-template-columns:1fr}
.mypage-table-wrap{overflow:visible}
.mypage-payment-table thead{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
.mypage-payment-table tbody{display:grid;gap:10px}
.mypage-payment-table tbody tr{display:grid;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.mypage-payment-table tbody td{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:8px 0;white-space:normal;text-align:right}
.mypage-payment-table tbody td::before{flex:0 0 34%;content:attr(data-label);color:var(--muted);font-size:var(--fs-sm);text-align:left}
.mypage-payment-table tbody td:last-child{border-bottom:0}
.mypage-payment-table tbody tr.is-empty{display:block;padding:14px}
.mypage-payment-table tbody tr.is-empty td{display:block;border:0;text-align:center}
.mypage-payment-table tbody tr.is-empty td::before{content:none}
:root{
  --space-section:64px;
  --space-x:22px;
  --space-heading:30px;
  --gap-grid:16px;
  --pad-card:22px 14px;
  --fs-sm:11px;
  --fs-md:13px;
  --fs-lg:15px;
  --fs-h3-s:15px;
  --fs-h3-m:18px;
  --fs-h3-l:22px;
  --fs-h2-s:22px;
  --fs-h2:26px;
}
.mobile-only{display:inline}
.section--plans .section-heading .heading-phrase{display:block}

/* ファーストビュー */
.hero{padding:0 20px 20px}
.hero::before{background:linear-gradient(180deg,rgba(255,253,249,.94),rgba(255,253,249,.84) 45%,rgba(255,253,249,.18))}
.hero__content{padding:28px 0 20px}
.hero h1{margin-bottom:14px;font-size:32px;line-height:1.5}
.hero__lead{font-size:var(--fs-lg);line-height:1.85}
.hero__note{margin-bottom:18px;font-size:var(--fs-md)}
.hero__content>.button{min-height:52px;font-size:var(--fs-md)}
.devices{max-width:480px;height:410px}
.devices__pc{top:8px;padding:5px;border-radius:7px}
.devices__sp{width:144px;padding:5px;border-radius:19px}
.devices__sp img{border-radius:14px}

/* 特徴の帯・テンプレート一覧 */
.promise-strip{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;padding:12px 16px}
.promise-strip>div{height:80px;gap:8px;padding:10px 6px;border-bottom:1px solid var(--line)}
.promise-strip>div:nth-child(2){border-right:0}
.promise-strip>div:nth-child(n+3){border-bottom-color:transparent}
.promise-strip .ui-icon{width:25px;height:25px}
.promise-strip p{font-size:var(--fs-sm);line-height:1.8}
.home-product-grid{grid-template-columns:minmax(0,1fr);row-gap:28px}
.home-product-grid .product-card{width:100%;max-width:350px;margin:auto}
.product-card .button{padding-inline:12px}

/* おすすめ・特徴・流れ */
.recommend-grid{grid-template-columns:1fr}
.recommend-grid img{height:200px}
.recommend-grid article>div{padding:24px 18px}
.value-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.value-grid p br,.flow-grid p br{display:none}
.flow-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 18px}
.flow-grid li:not(:last-child)::after{display:none}
.flow-grid li>span{font-size:30px}
.flow-grid h3{min-height:54px}
.flow-grid p{min-height:75px;margin-bottom:14px}
.flow-grid img{height:134px}
.reason-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:360px}
.reason-list li{min-height:188px;padding:18px 8px}
.reason-list li:last-child{grid-column:1/-1;justify-self:center;width:calc((100% - 16px)/2)}
.reason-list li>span{width:34px;height:34px;margin-bottom:12px;font-size:14px}
.reason-list p{font-size:10px}

/* 料金 */
.plan-notice{margin-top:32px;padding:20px 18px 16px}
.plan-notice legend{margin-left:2px;padding:0 10px}
.plan-notice dl div{grid-template-columns:1fr;gap:2px}

/* CTA・よくある質問・フッター */
.sales-photo-cta>div{padding:48px 22px}
.sales-photo-cta .button{width:100%;min-width:0;max-width:340px}
.sales-photo-cta--light::before{background:rgba(255,253,250,.86)}
.faq-list summary{padding:20px 32px 20px 0}
.faq-list details p{padding-right:24px}
.site-footer nav{gap:14px 20px}

/* 商品詳細 */
.detail-hero__inner{padding:24px 0 36px}
.detail-hero h1{font-size:48px}
.detail-hero__price strong{font-size:34px}
.detail-actions .button{width:100%}
.detail-hero .devices{height:410px}
.detail-mosaic{grid-template-columns:repeat(2,minmax(0,1fr))}
.detail-mosaic .detail-mosaic__phone{grid-column:2;width:min(84px,50%);margin:0 14px -28px 0;border-width:3px;border-radius:12px}
.detail-mosaic__reasons{grid-column:1/-1}
.included-grid{grid-template-columns:1fr}
.included-grid article{gap:14px;padding:18px 16px}
.included-grid .ui-icon{width:32px;height:32px}
.detail-sections li{padding:6px 14px}
.flow-grid--steps{grid-template-columns:1fr;gap:14px}
.flow-grid--steps li{padding:20px 16px}
.flow-grid--steps h3,.flow-grid--steps p{min-height:0;margin-bottom:0}.flow-grid--steps h3{margin-bottom:8px}

/* テンプレート一覧 */
.list-hero{padding-top:22px}
.list-hero .section-heading{padding:30px 0 12px}
.legal-table div{grid-template-columns:1fr;gap:4px;padding:18px 0}
.legal-section{padding:22px 0}
.catalog{padding-top:24px}
.catalog-tools{gap:16px;margin-bottom:20px}
.category-list{gap:8px}
.filter-chip{min-height:38px;padding:8px 12px;font-size:var(--fs-xs)}
.search-box{max-width:none}
.catalog-intro{padding:12px 14px;font-size:var(--fs-sm)}
.catalog-result{font-size:var(--fs-sm)}
.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:32px}
.catalog-grid .product-card :is(h2,h3){font-size:18px}
.catalog-card__description{min-height:7.6em;overflow-wrap:anywhere}
.catalog-note{margin-top:24px;font-size:var(--fs-xs);text-align:left}
.pagination{gap:12px;margin-top:36px}

/* SEO・AIOの説明 */
.section--seo{grid-template-columns:1fr;gap:30px;padding-block:60px}
.section--seo h2{margin-bottom:22px;line-height:1.65;letter-spacing:.015em}
.seo-checks{margin:22px 0;font-size:var(--fs-md);line-height:1.9}
.seo-copy>.aio-note{padding:14px;font-size:var(--fs-sm)}
.seo-preview{max-width:430px;margin:auto}
.seo-preview__scene{height:410px}
.seo-preview__pc{top:20px;left:4px;width:90%;padding:7px;transform:rotate(-4deg)}
.seo-preview__sp{bottom:8px;width:142px;padding:5px;border-radius:23px}
.seo-preview figcaption{margin-top:10px;font-size:var(--fs-sm)}
.search-demo__body{min-height:270px;padding:18px 18px 20px}
.search-demo__brand{margin-bottom:15px;font-size:25px}
.search-demo__result{margin-top:12px}
.search-demo__result strong{font-size:10px}
.search-demo--mobile{border-radius:18px}
.search-demo--mobile .search-demo__body{min-height:255px;padding:20px 10px}
.search-demo--mobile .search-demo__brand{gap:4px;margin-bottom:16px;font-size:21px}
.search-demo--mobile .search-demo__query{padding:7px;font-size:7px}
.search-demo--mobile .search-demo__result strong{font-size:10px}
.search-demo__bar>span{font-size:7px}
}

/* ◆ 動きを減らす設定 */
@media (prefers-reduced-motion:reduce){
html{scroll-behavior:auto}
*,
*::before,
*::after{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
