/*
Theme Name: Habitacion pet cottage suzu
Theme URI: 
Author: Hina Ono
Author URI: 
Description: Habitacion pet cottage suzu のオリジナルテーマ
Version: 1.0.0
Text Domain: suzu
*/

/* =========================
   Font Face
========================= */
@font-face {
  font-family: 'MPLUS1';
  src: url('./assets/fonts/MPLUS1-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MPLUS1';
  src: url('./assets/fonts/MPLUS1-Regular-v2.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MPLUS1';
  src: url('./assets/fonts/MPLUS1-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}


/* =========================
   Root
========================= */
:root {
  --font-base: 'MPLUS1', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
    'Yu Gothic', 'Meiryo', sans-serif;
  --font-en: 'MPLUS1', sans-serif;

  --color-text: #2f2a28;
  --color-text-light: rgba(47, 42, 40, 0.72);
  --color-bg: #f7f4ef;
  --color-bg-soft: #fbfaf7;
  --color-line: rgba(47, 42, 40, 0.12);
  --color-accent: #7b6a58;
  --color-accent-dark: #4c4035;
  --color-white: #ffffff;
  --color-black: #111111;

  --content-width: min(1480px, calc(100% - 56px));
  --content-width-narrow: min(1080px, calc(100% - 56px));

  --header-height: 78px;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.10);

  --easing: cubic-bezier(.22, .61, .36, 1);
  --transition-base: .35s var(--easing);
}

/* =========================
   Reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: var(--color-text);
  background: var(--color-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition-base), color var(--transition-base),
    background-color var(--transition-base), border-color var(--transition-base),
    transform var(--transition-base);
}

a:hover {
  opacity: 0.82;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
figure,
blockquote {
  margin: 0;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.06em;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

main {
  display: block;
  padding-top: 30px;
}

body.admin-bar .site-header {
  top: 32px;
}

/* =========================
   Layout
========================= */
.site-main {
  display: block;
}

.container {
  width: var(--content-width);
  margin-inline: auto;
}

.container--narrow {
  width: var(--content-width-narrow);
  margin-inline: auto;
}

/* fixed header 分の逃がし */
.has-fixed-header main,
.has-fixed-header .site-main {
  padding-top: calc(var(--header-height) + 20px);
}

/* =========================
   Typography
========================= */
body,
p,
li,
dt,
dd,
th,
td,
input,
textarea,
select,
button {
  font-family: var(--font-base);
  font-weight: 400;
}

h1 {
  font-size: clamp(32px, 4.2vw, 64px);
}

h2 {
  font-size: clamp(28px, 3.4vw, 48px);
}

h3 {
  font-size: clamp(22px, 2.2vw, 32px);
}

h4 {
  font-size: clamp(18px, 1.6vw, 24px);
}

small {
  font-size: 0.875rem;
}

/* =========================
   WordPress Base
========================= */

.alignwide {
  width: min(1480px, calc(100% - 56px));
  margin-inline: auto;
}
.alignfull {
  width: 100%;
  margin-inline: auto;
}

.wp-block-image img {
  border-radius: var(--radius-sm);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.current-menu-item > a,
.current_page_item > a {
  opacity: 1;
}

/* =========================
   Form Base
========================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent);
}

/* =========================
   Utilities
========================= */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/* =========================
   Responsive
========================= */
@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 767px) {
  :root {
    --content-width: calc(100% - 24px);
    --content-width-narrow: calc(100% - 24px);
    --header-height: 68px;
  }

  body {
    font-size: 15px;
    line-height: 1.7;
  }

  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  .has-fixed-header main,
  .has-fixed-header .site-main {
    padding-top: calc(var(--header-height) + 16px);
  }
main {
  padding-top: 15px;
}
}