/* =========================================================
   PCからタブレット・モバイルへ切り替える共通調整
========================================================= */

@media (max-width: 1024px) {
  .sf-desktop-nav {
    display: none;
  }

  .sf-menu-toggle {
    display: block;
  }

  .sf-brand__name {
    white-space: nowrap;
  }

  .sf-hero,
  .sf-hero__inner {
    min-height: 560px;
  }

  .sf-hero__image {
    background-position: 64% center;
  }

  .sf-hero__copy {
    width: 65%;

    padding-block: 56px;
  }

  .sf-hero__script {
    font-size: clamp(46px, 6vw, 68px);
    white-space: nowrap;
  }

  .sf-hero h1 {
    font-size: clamp(29px, 3.6vw, 38px);
  }

  .sf-hero__side {
    display: none;
  }

  .sf-single-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 35px;
  }

  .sf-category-cards {
    grid-template-columns: repeat(3,1fr);
  }

  .sf-category-cards a {
    border-right: 1px solid var(--sf-line);
  }

  .sf-web-service__grid {
    gap: 50px;
  }
}

@media (max-width: 767px) {
  .sf-container {
    width: min(calc(100% - 32px), var(--sf-container));
  }

  .sf-header__inner {
    width: calc(100% - 28px);
    min-height: 62px;

    gap: 10px;
  }

  .sf-brand {
    min-width: 0;
  }

  .sf-brand > a {
    display: block;
  }

  .sf-brand__name {
    display: block;

    font-size: clamp(19px, 6.4vw, 24px);
    line-height: 1;
    white-space: nowrap;
  }

  .sf-brand__tagline {
    display: none;
  }

  .sf-header__actions {
    flex: 0 0 auto;
    gap: 2px;
  }

  .sf-icon-button {
    width: 38px;
    height: 38px;
  }

  .sf-mobile-category {
    display: none;
  }

  .sf-mobile-category__scroll {
    overflow-x: auto;
    display: flex;

    align-items: center;
    gap: 13px;

    padding: 10px 16px;

    scrollbar-width: none;
  }

  .sf-mobile-category__scroll a {
    white-space: nowrap;
    font-size: 11px;
  }

  .sf-mobile-category__scroll i {
    color: var(--sf-gold);

    font-style: normal;
    font-size: 8px;
  }

  .sf-drawer-overlay {
    display: block;
    position: fixed;
    z-index: 1100;
    inset: 0;

    background: rgba(18,35,31,.62);
  }

  .sf-drawer-overlay[hidden] {
    display: none !important;
  }

  body.is-menu-open {
    overflow: hidden;
  }

  body.is-menu-open .sf-menu-toggle,
  body.is-menu-open .sf-back-to-top {
    opacity: 0 !important;

    visibility: hidden !important;

    pointer-events: none !important;
  }

  .sf-mobile-drawer {
    display: block;
    position: fixed;
    z-index: 1150;
    top: 0;
    left: 0;

    width: min(92vw,410px);
    height: 100dvh;

    padding: 0;

    overflow-y: auto;

    color: var(--sf-ink);
    background: #fbfaf6;
    box-shadow: 18px 0 45px rgba(12,38,33,.2);

    transform: translateX(-102%);
    transition: transform .3s ease;

    scrollbar-width: thin;
    scrollbar-color: rgba(83,133,121,.38) transparent;
  }

  .sf-mobile-drawer::-webkit-scrollbar {
    width: 3px;
  }

  .sf-mobile-drawer::-webkit-scrollbar-track {
    background: transparent;
  }

  .sf-mobile-drawer::-webkit-scrollbar-thumb {
    background: rgba(83,133,121,.38);
    border-radius: 999px;
  }

  .sf-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .sf-mobile-drawer__head {
    display: flex;

    justify-content: space-between;
    align-items: center;

    min-height: 92px;

    padding: 20px;

    color: #fff;
    background: var(--sf-emerald);
    border: 0;
  }

  .sf-mobile-drawer__head strong,
  .sf-mobile-drawer__head small {
    display: block;
  }

  .sf-mobile-drawer__head strong {
    font: 600 16px/1.2 var(--sf-serif);
    letter-spacing: .06em;
  }

  .sf-mobile-drawer__head small {
    margin-top: 8px;

    color: var(--sf-gold-soft);

    font-size: 8px;
    letter-spacing: .15em;
  }

  .sf-drawer-close {
    display: grid;

    place-items: center;

    width: 40px;
    height: 40px;

    padding: 0;

    color: #fff;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 50%;

    font-size: 23px;
    line-height: 1;
  }

  .sf-mobile-drawer__body {
    padding: 24px 20px 34px;
  }

  .sf-mobile-drawer__label {
    margin: 0 0 12px;

    color: var(--sf-gold);

    font-size: 9px;
    font-weight: 700;
    letter-spacing: .22em;
  }

  .sf-mobile-drawer__body h2 {
    margin: 0;

    font-size: 18px;
    font-weight: 600;
  }

  .sf-mobile-drawer__intro {
    margin: 10px 0 24px;

    color: var(--sf-muted);

    font: 400 11px/1.8 var(--sf-sans);
  }

  .sf-mobile-drawer__themes {
    border-top: 1px solid var(--sf-line);
  }

  .sf-mobile-drawer__themes a {
    display: grid;

    grid-template-columns: 38px 1fr 24px;
    gap: 12px;
    align-items: center;

    padding: 16px 0;

    color: var(--sf-ink);
    border-bottom: 1px solid var(--sf-line);
  }

  .sf-mobile-drawer__themes b {
    color: var(--sf-gold);

    font-size: 10px;
  }

  .sf-mobile-drawer__themes strong,
  .sf-mobile-drawer__themes small {
    display: block;
  }

  .sf-mobile-drawer__themes strong {
    font: 600 16px/1.5 var(--sf-serif);
  }

  .sf-mobile-drawer__themes small {
    color: var(--sf-muted);

    font-size: 9px;
  }

  .sf-mobile-drawer__themes i {
    color: var(--sf-green);

    font-style: normal;
  }

  .sf-mobile-drawer__links {
    margin-top: 24px;
  }

  .sf-mobile-drawer__group {
    padding-top: 16px;

    border-top: 1px solid var(--sf-line);
  }

  .sf-mobile-drawer__group + .sf-mobile-drawer__group {
    margin-top: 18px;
  }

  .sf-mobile-drawer__group > p {
    margin: 0 0 7px;

    color: var(--sf-gold);

    font-size: 8px;
    font-weight: 700;
    letter-spacing: .22em;
  }

  .sf-mobile-drawer__group nav {
    border-top: 1px solid rgba(181,154,106,.18);
  }

  .sf-mobile-drawer__group a {
    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 47px;

    padding: 11px 13px;

    color: var(--sf-ink);
    border-bottom: 1px solid #e5dccd;

    font-size: 11px;
  }

  .sf-mobile-drawer__group a span {
    color: var(--sf-gold);
  }

  .sf-mobile-drawer__group--service nav {
    background: #f4eadf;
  }

  .sf-mobile-drawer__footer {
    margin: 25px -20px -34px;
    padding: 25px 20px 30px;

    color: #fff;
    background: var(--sf-green-dark);
    border-top: 3px solid var(--sf-gold-soft);
  }

  .sf-mobile-drawer__footer strong,
  .sf-mobile-drawer__footer span {
    display: block;
  }

  .sf-mobile-drawer__footer strong {
    font: 500 23px/1.2 var(--sf-script);
  }

  .sf-mobile-drawer__footer span {
    margin-top: 9px;

    color: rgba(255,255,255,.7);

    font-size: 9px;
    letter-spacing: .08em;
  }

  .sf-footer {
    margin-top: 24px;
  }

  .sf-footer__inner {
    width: calc(100% - 36px);

    padding-top: 50px;
  }

  .sf-footer__columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .sf-footer__bottom {
    display: block;
  }

  .sf-back-to-top {
    width: 52px;
    height: 52px;

    right: 14px;
    bottom: 14px;
  }

  .sf-card-grid,
  .sf-latest-grid {
    grid-template-columns: 1fr;
  }

  .sf-archive-hero,
  .sf-category-hero {
    padding: 55px 0;
  }

  .sf-page__article {
    width: calc(100% - 32px);

    margin-block: 50px;
  }

  .sf-hero,
  .sf-hero__inner {
    min-height: 560px;
  }

  .sf-hero__image {
    background-position: 61% center;
  }

  .sf-hero__image::after {
    background: linear-gradient(90deg, rgba(228,235,231,.80) 0%, rgba(228,235,231,.56) 47%, rgba(228,235,231,.12) 78%, rgba(228,235,231,0) 100%);
  }

  .sf-hero__inner {
    align-items: center;
  }

  .sf-hero__copy {
    width: 100%;

    padding: 58px 0 70px;
  }

  .sf-hero__eyebrow {
    font-size: 11px;
  }

  .sf-hero__script {
    max-width: 72%;

    margin-bottom: 16px;

    font-size: clamp(37px, 11vw, 48px);
    line-height: 1.05;
    white-space: nowrap;
  }

  .sf-hero h1 {
    max-width: 68%;

    margin-bottom: 18px;

    font-size: clamp(22px, 6.6vw, 28px);
    line-height: 1.55;
    letter-spacing: .035em;
    white-space: normal;
  }

  .sf-hero__copy > h1 + p {
    max-width: 62%;

    font-size: 11px;
    line-height: 1.85;
  }

  .sf-hero__button {
    min-width: 0;
    max-width: 72%;

    margin-top: 20px;
    padding: 10px 12px;

    font-size: 9px;
  }

  .sf-hero__side {
    display: none;
  }

  .sf-home-section {
    padding: 70px 0;
  }

  .sf-line-art--profile {
    display: none;
  }

  .sf-line-art--start {
    right: -18px;
    top: 104px;

    width: 48px;

    opacity: .2;
  }

  .sf-start-grid {
    grid-template-columns: 1fr;
  }

  .sf-start-card {
    min-height: 0;
  }

  .sf-start-card--green {
    min-height: 280px;

    order: -1;
  }

  .sf-jibun-band {
    padding: 70px 0;
  }

  .sf-jibun-band__grid,
  .sf-web-service__grid {
    grid-template-columns: 1fr;
  }

  .sf-jibun-band__main,
  .sf-jibun-band__guide {
    padding: 34px 27px;
  }

  .sf-category-cards {
    grid-template-columns: 1fr;
  }

  .sf-category-cards a {
    min-height: 125px;
  }

  .sf-category-cards h3 {
    margin-top: 12px;
  }

  .sf-line-art--cup {
    right: 0;
    top: -46px;

    width: 66px;

    opacity: .22;
  }

  .sf-web-service {
    padding: 70px 0;
  }

  .sf-web-service__intro,
  .sf-web-service__works {
    padding: 36px 25px;
  }

  .sf-web-service__cards {
    grid-template-columns: 1fr;
  }

  .sf-editors-pick {
    padding: 60px 0;
  }

  .sf-editors-pick__grid {
    grid-template-columns: 1fr;
  }

  .sf-editors-pick__grid > a {
    border-right: 0;
    border-bottom: 1px solid var(--sf-line);
  }

  .sf-editors-pick__grid > a:last-child {
    border-bottom: 0;
  }

  .sf-editor__grid {
    grid-template-columns: 1fr;
  }

  .sf-editor__photo {
    min-height: 330px;

    background-position: 73% center;
  }

  .sf-editor__copy {
    padding: 32px 25px;
  }

  .sf-editor__trust {
    padding: 30px 25px 25px;

    border-top: 1px solid var(--sf-line);
    border-left: 0;
  }

  .sf-editor__grid .sf-editor__trust ul {
    padding: 0;

    border: 0;
  }

  .sf-line-art--footer {
    right: 8px;

    width: 78px;

    opacity: .2;
  }

  .sf-single-layout {
    padding-top: 35px;
  }

  .sf-single-grid {
    grid-template-columns: 1fr;
  }

  .sf-article-header,
  .sf-article-content {
    padding-inline: 22px;
  }

  .sf-article-header {
    padding-top: 32px;
  }

  .sf-article-content {
    font-size: 15px;
  }

  .sf-article-content h2 {
    font-size: 23px;
  }

  .sf-article-sidebar {
    display: none;
  }

  .sf-author-card {
    grid-template-columns: 1fr;

    margin: 8px 22px 38px;
  }

  .sf-author-card__visual {
    min-height: 300px;

    background-position: 43% center;
  }

  .sf-author-card__copy {
    padding: 29px 23px 26px;
  }

  .sf-related {
    padding: 46px 22px 26px;

    border-radius: 20px;
  }

  .sf-related__head {
    margin-bottom: 55px;
  }

  .sf-related__grid,
  .sf-continue__grid {
    grid-template-columns: 1fr;
  }

  .sf-related__grid {
    gap: 48px;
  }

  .sf-related__card {
    min-height: 190px;

    padding-top: 45px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-links::after {
    display: none;
  }

  .post-navigation .nav-previous {
    border-right: 0;
    border-bottom: 1px solid var(--sf-line);
  }

  .post-navigation a {
    min-height: 0;

    padding: 22px 4px;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .sf-continue {
    margin-block: 60px;
    padding: 28px 20px;
  }

  .sf-continue__head {
    display: block;
  }

  .sf-continue__head > a {
    display: inline-block;

    margin-top: 12px;
  }
}
