/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
01. Reset & Base Styles
    - Browser Reset / Normalize
    - Box sizing & Margin/Padding reset
    - Media defaults (img, video, svg, canvas)

02. Typography & Text
    - Body, Headings (h1-h6)
    - Paragraphs
    - Lists (ul, ol)
    - Blockquotes
    - Links

03. Forms & Inputs
    - Inputs, Buttons, Textareas, Selects
    - Form element alignment / spacing

04. Layouts & Containers
    - Page structure (header, main, footer)
    - Containers / Sections / Grid
    - Columns / Rows
    - Width & alignment utilities

05. Components & Blocks
    - Navigation / Menus / Breadcrumbs
    - Posts & Pages (entry-content, post-meta)
    - Comments / Comment Lists
    - Widgets / Sidebars
    - Media / Galleries / Captions
    - Buttons / Cards / Alerts

06. Plugins & Extensions
    - Jetpack Infinite Scroll
    - WooCommerce or other plugin-specific styles

07. Utilities & Helpers
    - Accessibility (prefers-reduced-motion, focus-visible)
    - Spacing utilities (margin, padding helpers)
    - Display utilities (hidden, block, flex)
    - Clearfix / Visually hidden helpers

--------------------------------------------------------------*/
/* =======================================================
00.:root variables
====================================================== */

:root{
/* Colors */
--color-text: #333;
  --color-bg: #fff;
	
 /* Typography */
  --font-family-base: Roboto,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;

/* Heading font sizes (responsive) */
  --h1-size: clamp(2rem, 5vw, 3rem);
  --h2-size: clamp(1.75rem, 4.5vw, 2.5rem);
  --h3-size: clamp(1.5rem, 4vw, 2rem);
  --h4-size: clamp(1.25rem, 3.5vw, 1.75rem);
  --h5-size: clamp(1rem, 3vw, 1.5rem);
  --h6-size: clamp(0.875rem, 2.5vw, 1.25rem);
	
/* Alignment */
  --align-left: left;
  --align-center: center;
  --align-right: right;

/* Spacing */
  --spacing-base: 1em;
  --spacing-small: 0.5em;
  --spacing-large: 2em;
	
/* Display utilities */
  --display-hidden: none !important;
  --display-block: block !important;
  --display-flex: flex !important;
}

/* =======================================================
01. Reset & Base Styles
====================================================== */

/* 01-1. Browser Reset / Normalize */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 01-2. Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =======================================================
02. Typography & Text
====================================================== */

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: 1.5;
	font-size: 1.6rem;
	font-weight: 500;
  font-family:
	"Noto Sans JP",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}
h1{
	font-size: var(--h1-size);
}
h2{
	font-size: var(--h2-size);
}
h3{
	font-size: var(--h3-size);
}
h4{
	font-size: var(--h4-size);
}
h5{
	font-size: var(--h5-size);
}
h6{
	font-size: var(--h6-size);
}
p {
  margin-bottom: .5em;
  word-break: break-word;
}

ul,
ol {
  list-style: none;
  margin-bottom: 1em;
}

blockquote {
  margin: 1em 0;
  padding-left: 1em;
  border-left: 4px solid #ccc;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

/* =======================================================
03. Forms & Inputs
====================================================== */

input,
button,
textarea,
select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* =======================================================
04. Layouts & Containers
====================================================== */

/* Page structure */
header,
main,
footer {
  display: block;
}

/* Containers / Sections / Grid */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Columns / Rows */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.col {
  flex: 1;
}

/* header */
.site-header{
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 80px;
	padding: 1em 2em;
	background-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(5px);
}
.header_inner{
	flex: 1;
	height: 100%;
}
.header_inner nav{
	height: 100%;
}
.header_inner nav .menu{
	justify-content: flex-end;
	align-items: flex-end;
	height: 100%;
	margin-bottom: 0;
}
/* =======================================================
05. Components & Blocks
====================================================== */

/* Navigation / Menus */
.nav,
.menu {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

/* Posts & Pages */
.entry-content {
  margin-bottom: 2em;
}

/* Comments */
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Widgets / Sidebars */
.widget {
  margin-bottom: 1.5em;
}

/* Media / Galleries / Captions */
.wp-block-image img,
.wp-block-video video {
  width: 100%;
  height: auto;
}

.wp-caption {
  font-size: 0.875rem;
  color: #666;
  text-align: var(--align-center);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

/* Buttons / Cards / Alerts */
.btn {
}

/* =======================================================
06. Plugins & Extensions
====================================================== */

/* =======================================================
07. Utilities & Helpers
====================================================== */

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* Clearfix helper */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* =======================================================
07. Utilities & Helpers
====================================================== */
#site-header{
	z-index: 999;
}
html, body {
  margin: 0;
  height: 100%;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, #ff9999, #99ccff);
}

.contents_top {
  height: 100vh;                /* ビューポート分の高さ */
  overflow-y: auto;              /* スクロールコンテナにする */
  scroll-snap-type: y mandatory; /* スナップ有効 */
	scroll-behavior: smooth;
}

section {
  height: 100vh;                 /* 1ページ分の高さ */
  scroll-snap-align: start;
	
  }
.flex{
	height: 100vh; 
	display: flex;
  justify-content: space-between;
  align-items: center;
	flex-direction: row-reverse;
	margin-inline: 24px; 
	
}
.zindex{
	position: relative;
	z-index: 99;
	flex: 1;
	text-align: center;
}
.zindex p{
	margin-bottom: 0;
}
.zindex + p{
	height: 100vh;
	width: 50%;
	background: url('https://morii.shop/wp-content/themes/template/images/test_sample.jpg') no-repeat center center / cover ;
}
.flex img{
	flex: 1;
	height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
	margin-bottom: 0;
}
.mv {
  height: 100vh;
}

/* 1. 変数の定義（初期値は現在の大きいサイズ 250px にしておく） */
@property --circle-size {
  syntax: '<length>';
  inherits: false;
  initial-value: 200px;
}

.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 10;
  pointer-events: none;

  /* 変数を使用してマスクを描画 */
 -webkit-mask-image: radial-gradient(
  circle var(--circle-size) at 25% 50%,
  transparent 100%,
  black 100%
);
mask-image: radial-gradient(
  circle var(--circle-size) at 25% 50%,
  transparent 100%,
  black 100%
);

  /* 変化を滑らかにする（サイズ変更がアニメーションになります） */
  transition: --circle-size 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 2. ページトップにいる時のサイズ (JSでこのクラスを制御します) */
.overlay.is-top {
  --circle-size: 50px;
}

/* 3. 前回の「pホバーでさらに大きく」も併用する場合 */
.contents_top:has(.flex .zindex + p:hover) .overlay {
  --circle-size: 250px;
}

