/*!
Theme Name: kiyoTheme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: kiyotheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

kiyoTheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}


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

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

body, body * {
  font-weight: bold;
}
/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #000;
}

/* a:visited {
	color: #191970;;
} */

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #777;
	border: 1px solid #000;
	border-radius: 0px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

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

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

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

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* ===============================
   Header共通スタイル
================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #fff;
  height: 62px;
  border-bottom: 1px solid #000;
  width: 100%;
  flex-shrink: 0;
    display: block;

}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

.header-site-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #000;
  margin-left: 32px;
}

.header-nav {
  display: flex;
}

.header-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-right: 32px;
}

.header-menu li a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 19.2px;
}

.header-menu li a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===============================
   スマホ表示用
================================== */
@media screen and (max-width: 768px) {
  /* .header-site-title { */
  /* margin-left: 32px; */
  /* } */
  .menu-toggle {
    display: block;
	padding-top: 0;
  }

  .header-nav {
    position: fixed;
    top: 62px;
    right: 0;
	bottom: 0;
    width: 75%;
	max-width: 320px;
    height: calc(100vh - 62px);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
    z-index: 9998;
	display: block;
	overflow-y: auto;
  }

  .header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .header-nav ul li {
    margin-bottom: 1rem;
  }

  .header-nav ul li a {
    text-decoration: none;
    color: #000;
    font-size: 1.25rem;
  }

  /* メニューを開いた状態（③対応） */
  .header-nav.open {
    transform: translateX(0);
	box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  }

  .header-menu {
    flex-direction: column;
    gap: 1rem;
  }

  .header-menu li a {
    font-size: 1.2rem;
  }
}

/* ------------------------------
  フッター（共通）
------------------------------ */

.site-footer {
  background: #fff;
  color: #000;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-top: 1px solid #000;
  box-sizing: border-box;
  flex-shrink: 0;
}

.site-footer .footer-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.site-footer .footer-left {
  text-align: left;
}

.site-footer .footer-right {
  text-align: right;
}

.site-footer .footer-site-name {
  font-size: 1.2em;
  font-weight: bold;
}

.site-footer .footer-right a {
  color: #000;
  text-decoration: none;
  margin-left: 16px;
}

/* スマホ用footer */
@media (max-width: 768px) {
  .site-footer {
    height: auto;
    padding: 16px 16px;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .site-footer .footer-left,
  .site-footer .footer-right {
    width: 100%;
    text-align: center;
    margin: 0;
  }

  .site-footer .footer-right a {
    margin: 0 8px;
  }
}


/* base  */

html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  height: auto; 
  display: block; 
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; 
}

.site, .wrapper, .page {
  overflow-x: visible;
  overflow-y: visible;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* hero */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  box-sizing: border-box; 
  margin: 0; /* 追加 */
  padding: 0; /* 追加 */
}

.hero-image-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
  box-sizing: border-box; /* 追加 */
}

.hero-image-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  transition: transform 0.5s ease;
  pointer-events: none;
  display: block;
  user-select: none; /* 追加：画像選択防止 */
}

.hero:hover .hero-image-wrapper img {
  transform: translate(-50%, -50%) scale(1.1);
}


/* 追加対策 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

.hero,
.hero-image-wrapper,
.hero-image-wrapper img {
  margin: 0;
  padding: 0;
  border: 0;
}

.hero-text {
  position: relative;
  z-index: 10;
}

.hero-text h1,
.hero-text p {
  margin: 0;
}

/* top-post  */
.latest-posts {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.posts-wrapper {
  display: flex;
  justify-content: space-between; /* アイテム間を均等に空ける */
  gap: 20px; /* さらに隙間を空けたい場合 */
}

.post-item {
  flex: 1 1 0; /* 3等分 */
  box-sizing: border-box;
  padding: 10px; /* 内側の隙間（上下左右） */
  border: 1px solid black; /* 外枠の黒線 */
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
}

.post-image {
  width: 100%;
  padding-top: 56.25%; /* 16:9 アスペクト比 */
  background-size: cover;
  background-position: center;
  border: 1px solid black; /* 画像の周りの黒線 */
  margin-bottom: 15px; /* 画像下の隙間 */
}

.post-image.no-image {
  background: #ccc;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  height: 150px;
  border: 1px solid black;
}

.post-item h3 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.post-item h3 a {
  color: #0073aa;
  text-decoration: none;
}

.post-item h3 a:hover {
  text-decoration: underline;
}


/* sidebar */

.content-with-sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.main-content {
  flex: 1 1 70%;
}

.sidebar {
  flex: 1 1 28%;
}




/* general */
.page .entry-title {
  display: none;
}

/* page-section */
/* page-section */
.section-block h2 {
  height: 62px;
  padding-left: 32px;
  border-bottom: 1px solid black;
  display: flex;
  align-items: center;
  margin: 0;
}

.section-block p {
  padding: 32px;
  border-bottom: none;
  margin: 0;
}

/* advantage-section */
.advantage-section {
  border-top: none !important; /* 上線を消す */
  border-bottom:none !important ;
  margin: 0; /* 必要に応じて調整 */
  padding: 0; /* 必要に応じて調整 */
}

.advantage-title {
  height: 62px;
  line-height: 62px;
  padding-left: 32px;
  border-top: none !important;  /* 上線を消す */
  border-bottom: 1px solid #000; /* 下線だけ残す */
  margin: 0; /* 余白をリセット */
}

.advantage-content{
  padding:32px;
}

.advantage-item:nth-child(-n+4) {
  border-bottom: 1px solid #000;
}
.advantage-item:nth-child(odd) {
  border-right: 1px solid #000;
}


.advantage-content ul{
  margin:0;
}

.advantage-text{
	margin-bottom: 0px;
}

.advantage-icon {
  width: 32px;
  height: 32px;
  margin-right: 32px;
  flex-shrink: 0;
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.advantage-item:nth-child(odd) {
  border-right: none
}
.advantage-item:last-child {
  border-top: 1px solid #000
}
}

/* contact banner */
.banner-container {
  width: 100%;
  background: #fff;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  overflow: hidden;
}

.banner-content {
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.banner-marquee {
  display: inline-flex;
  animation: marquee 50s linear infinite;
  align-items: center;
  gap: 20px; /* 文字とボタンの間隔を均等に */
  padding: 3px 0; /* 上下3pxの隙間 */
}

.banner-text {
  font-weight: 700; /* chakra-fontWeights-bold相当 */
  font-size: 110px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
}

.banner-button {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 700; /* chakra-fontWeights-bold */
  font-size: 24px;
  color: black;
  background: transparent;
  border: 2px solid black;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.banner-button:hover{
  color: #fff;
  background: #000;
}

@keyframes marquee {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .banner-text {
    font-size: 30px;
  }
}



/* two-collumn */

.section-title {
  height: 62px;
  padding-left: 32px;
  display: flex;
  align-items: center;
  font-size: 1.5em;
  margin: 0;
  border-bottom: 1px solid black; /* h2にのみ枠線 */
}

.item-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* ←ここをcenterから変更 */
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.left-item{
 border-right: 1px solid black; ;
}

.image-container {
  padding: 32px;
}

.image-container img {
  border: 1px solid black; /* 画像に枠線 */
  display: block;
  max-width: 100%;
  height: auto;
}

.image-subtitle {
  padding: 0 32px;
  margin-top: 0px;
  margin-bottom: 0;
  font-size: 1.2em;
  font-weight: bold;
}
.image-subtitle a {
  color: black;
}

.text-content {
  padding: 32px;
  margin: 0;
}

.custom-two-column-section img{
	transition: opacity 1s ease;

}

.custom-two-column-section img:hover  {
	opacity: 0.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .item-wrapper {
    grid-template-columns: 1fr;
  }
  .left-item{
	border-top: none;
	border-left: none;
	border-right: none;
    border-bottom: 1px solid #000;
  }
}




/* Contact Page */
.contact-wrapper {
  max-width: 100%;
  box-sizing: border-box;
}

.contact-header {
  height: 62px;
  line-height: 62px;
  font-size: 24px;
  font-weight: bold;
  padding-left: 32px;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
}

.contact-form-section {
  padding: 32px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .contact-form-section {
    width: 100%; /* スマホ画面は全幅 */
    padding: 16px;
  }
}

.contact-label {
  display: block;
  height: 62px;
  line-height: 62px;
  font-weight: 600;
  font-size: 24px; /* ラベルの文字サイズ24px */
  margin-bottom: 8px;
}

.contact-input,
.contact-textarea {
  width: 100%;
  height: 32px;
  padding: 0 12px;
  font-size: 16px;
  box-sizing: border-box;
  border: 1px solid #000;
  margin-bottom: 24px;
  resize: none;
  border-radius: 0; /* 角を直角に */
}
input {
 border: 1px solid #000;

}

.contact-textarea {
  height: 124px; /* メッセージ用は高さ少し大きめに調整 */
  padding-top: 12px;
}

.contact-button-wrapper {
  display: flex;
  justify-content: flex-end;
  padding-right: 0; /* 右端スペースを削除 */
}

.contact-submit-button {
  height: 32px;
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  box-sizing: border-box;
  border-radius: 0px;

  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央（必要に応じて） */
  padding: 0 32px;
}

.contact-submit-button:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* セクションタイトル共通スタイル */
.section-header {
  height: 62px;
  line-height: 62px;
  font-size: 24px;
  font-weight: bold;
  padding-left: 32px;
  box-sizing: border-box;
}

/* グリッドレイアウト */
.news-blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  box-sizing: border-box;
}

/* 各カードスタイル */
.news-blog-card {
  width: 33.3333%;
  padding: 32px;
  box-sizing: border-box;
  border-right: 1px solid #000;
}

.news-blog-card:last-child {
  border-right: none;
}

.news-blog-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border:1px solid #000;
}

.news-blog-title {
  font-size: 18px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.news-blog-title a {
  color: #000;
  text-decoration: none;
}

.news-blog-title a:hover {
  text-decoration: underline;
}

.news-blog-date {
  font-size: 14px;
  color: #666;
}

.news-blog-section img{
	transition: opacity 1s ease;
}

.news-blog-section img:hover  {
	opacity: 0.6;
}

.section-header-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom:1px solid #000;
}

.section-header {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.section-header-button {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  padding: 8px 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.section-header-button:hover {
  background-color: #000;
  color: #fff;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .news-blog-card {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #000;
  }

  .news-blog-card:last-child {
    border-bottom: none;
  }
  .section-header-wrapper {
	justify-content: space-between
  }
  .section-header-button{
	margin-right:32px ;
  }
}



/* サービス画像：レスポンシブグリッド */

/* 既存のスタイル */
/* セクションヘッダー（共通） */
.section-header {
  height: 62px;
  line-height: 62px;
  font-size: 24px;
  font-weight: bold;
  padding-left: 32px;
  box-sizing: border-box;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid #000;
}

.service-item {
  padding: 32px;
  box-sizing: border-box;
}

/* 線のルール（PC時） */
.service-item:nth-child(1),
.service-item:nth-child(2) {
  border-bottom: 1px solid #000;
}

.service-item:nth-child(1),
.service-item:nth-child(3) {
  border-right: 1px solid #000;
}

.service-content {
  display: flex;
  align-items: center;
}

.service-icon {
  width: 32px;
  height: 32px;
  margin-right: 32px;
  flex-shrink: 0;
}

.service-text {
  font-size: 16px;
  line-height: 1.6;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
	border-bottom: none;
  }
  .service-item {
    border-bottom: 1px solid #000;
	border-left:none;
	border-right:none!important;
	
  }
}

/* top-features */
.section-header {
  height: 62px;
  line-height: 62px;
  font-size: 24px;
  font-weight: bold;
  padding-left: 32px;
  box-sizing: border-box;
}

/* Featuresグリッド */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* 各カード */
.feature-card {
  padding: 32px;
  border-top:none;
  border-left:none;
  border-right: 1px solid #000;
  box-sizing: border-box;
}

/* 最終列のカードは右線を外す */
.features-grid > .feature-card:nth-child(3n) {
  border-right: none;
}

@media screen and (max-width: 768px) {
  .features-grid > .feature-card {
    border-right: none;
  }

  .features-grid > .feature-card:last-child {
    border-bottom: none;
  }
  .feature-card {
	border-bottom: 1px solid #000 ;
  }
}

/* タイトル */
.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

/* テキスト */
.feature-text {
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* top-second-hero */

.top-hero-section, .hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; /* 高さを与えることが重要 */
  overflow: hidden;
  border-bottom: 1px solid #000;
  z-index: 1;
}

.top-hero-section img, .hero-section img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.top-hero-text,
.hero-text, .hero-text-second {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%); /* -40% → -50% に変更 */
  opacity: 0;
  transition: opacity 3s ease, transform 3s ease;
  color: white;
  font-weight: bold;
  font-size: 6em;
  text-align: center;
  background: transparent;
  padding: 4px 8px;
  pointer-events: none;
  max-width: 830px;
  width: 100%;            /* 追加 */
  display: flex;          /* 追加 */
  flex-direction: column; /* 複数行を縦に並べる */
  align-items: center;    /* 横中央揃え */
  justify-content: center;/* 縦中央揃え（transformと併用可） */
}

/* 表示トリガー後に現れる状態 */
.top-hero-text.is-visible,
.hero-text.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* 表示されたら浮かび上がる */
.hero-text-second.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}


@media screen and (max-width: 768px) {
   /* ヒーロー関連	 */
  .top-hero-section, .hero-section{
    height: auto; /* vh固定を解除 */
    aspect-ratio: 16 / 9; /* 比率指定で安定表示 */
  }
  .top-hero-text, .hero-text-second, .hero-text {
    font-size: 2em;         /* フォントサイズ縮小 */
    padding: 0 16px;        /* 内側の余白も調整 */
  }

  .top-hero-section img, .hero-section img {
	position: relative;
    width: 100%;
    object-fit: cover; /* スマホでは画像全体を表示 */
    background-color: #000; /* 背景を黒などにして余白対応 */
  }
}

.news-blog-section img{
	transition: opacity 1s ease;
}

.news-blog-section img:hover {
opacity: 0.6;
} 

/* ------------------------------
  共通レイアウト
------------------------------ */
.blog-wrapper {
  display: flex;
  box-sizing: border-box;
}

/* メインとサイドの幅 */
.main-content {
  width: 66.6666%;
  box-sizing: border-box;
}

.sidebar {
  width: 33.3333%;
  padding: 0;
  box-sizing: border-box;
  border-left: 1px solid #000;
}

/* ------------------------------
  メイン記事セクション
------------------------------ */
.main-header {
  font-size: 24px;
  height: 62px;
  line-height: 62px;
  padding-left: 32px;
  margin:0;
  border-bottom: 1px solid #000;
}
.post-content{
  word-wrap: break-word;        /* 長い単語を折り返す */
  overflow-wrap: break-word;    /* モダンなブラウザ向け */
  word-break: break-word;       /* 特に日本語など含む場合に有効 */
  white-space: normal;          /* 改行を許可 */
}

.card-section {
  box-sizing: border-box;
}

.post-card {
  width: 100%;
  border-bottom: 1px solid #000;
  box-sizing: border-box;
}

.post-thumbnail,
.post-title,
.post-date,.post-content{
  margin: 32px;
  box-sizing: border-box;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border:1px solid #000
}

.post-title {
  margin-top: 16px;
  font-size: 18px;
}

.post-date {
  font-size: 14px;
  color: #000;
  margin-top: 4px;
  display: block;
}

.post-navigation{
  padding:32px;
  justify-content: space-between; /* 左右に要素を配置 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap; 
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1; /* 必要なら幅を均等に */
}

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

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

/* ------------------------------
  パンクズ
------------------------------ */

.breadcrumb {
  background: #fff;
  height: 62px;
  line-height: 62px;
  padding-left: 32px;
  border-bottom: 1px solid #000;
}

.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.breadcrumb li {
  color: #000;
}

.breadcrumb a {
  color: #000;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ------------------------------
  サイドバー記事セクション
------------------------------ */
.latest-post-section {
  margin: 0;
  padding: 0;
}

.latest-post-section h2 {
  height: 62px;
  line-height: 62px;
  margin: 0;
  padding-left: 32px;
  border-bottom: 1px solid #000;
}

.sidebar-post {
  border-bottom: 1px solid #000;
  padding: 0 32px 32px;
}

.sidebar-post:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sidebar-post-title {
  margin: 0;
  padding-top: 32px;
  font-size: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-post-title a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.sidebar-post-date {
  height: 62px;
  line-height: 62px;
  font-size: 0.9em;
  margin: 0;
  display: block;
}

.sidebar-post-body {
  display: flex;
  gap: 16px;
}

.sidebar-post-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.sidebar-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border:1px solid #000;
}

.sidebar-post-excerpt {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.4em;
  color: #333;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;

  word-break: break-all;
  overflow-wrap: break-word;

  /* max-heightを明示的に指定 */
  max-height: calc(1.4em * 2);
}

/* ------------------------------
  sidebar カテゴリーセクション
------------------------------ */
.sidebar-category-section {
  margin: 0;
  padding: 0;
  border-top: 1px solid #000;
}

.sidebar-category-section h2 {
  height: 62px;
  line-height: 62px;
  margin: 0;
  padding-left: 32px;
  border-bottom: 1px solid #000;
}

.sidebar-category-list {
  list-style-type: disc;
  padding-left: 48px;
  margin: 16px 0;
}

.sidebar-category-list li {
  margin-bottom: 8px;
  font-size: 0.95em;
}

.sidebar-category-list li a {
  color: #000;
  text-decoration: none;
}

.sidebar-category-list li a:hover {
  text-decoration: underline;
}
/* ------------------------------
  sidebar サーチーセクション
------------------------------ */
.sidebar-search-section {
  border-top: 1px solid #000;
  margin: 0;
  padding: 0;
}

.sidebar-search-title {
  height: 62px;
  line-height: 62px;
  padding-left: 32px;
  margin: 0;
  border-bottom: 1px solid #000;
}

.sidebar-search-form {
  padding: 0 32px;
  height: 62px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.sidebar-search-input {
  width: 100%;
  height: 32px;
  padding: 0 16px;
  font-size: 16px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}


/* ------------------------------
  投稿がないとき
------------------------------ */
.no-post-message {
  padding-left: 32px;
  color: #999;
}

/* ------------------------------
  レスポンシブ対応（スマホ）
------------------------------ */
@media (max-width: 768px) {
  .latest-post-section {
   border-top:1px solid #000
  }

  .latest-post-section h2 {
   font-size: 24px;
  }


  .blog-wrapper {
    flex-direction: column;
  }

  .main-content,
  .sidebar {
    width: 100%;
    border: none;
  }

  .main-header {
    font-size: 20px;
    padding-left: 16px;
  }

  .post-thumbnail,
  .post-title,
  .post-date,
  .post-content,
  .post-navigation {
    margin: 16px;
  }

  .post-navigation {
	padding-left:0px;
    padding-right:0px;
	padding-top:10px;
	padding-bottom:10px
  }

  .sidebar-post {
    padding: 0 16px 24px;
  }

  .sidebar-post-title {
    padding-top: 24px;
    font-size: 1.2em;
  }

  .sidebar-post-date {
    height: auto;
	margin-top:10px;
	margin-bottom: 10px;
    line-height: 1.5;
  }

  .sidebar-post-body {
    flex-direction: column;
    gap: 8px;
  }

  .sidebar-post-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }


  .sidebar-post-excerpt {
    max-height: none;
  }

  .latest-post-section h2,
  .sidebar-category-section h2 {
    padding-left: 16px;
    font-size: 24px;
  }

  .sidebar-category-list {
    padding-left: 32px;
  }
}

.about-block {
  border-bottom: 1px solid #000;
}

.about-block-title {
  height: 62px;
  line-height: 62px;
  margin:0;
  padding-left: 32px;
  border-bottom: 1px solid #000;
}

.about-block-paragraph {
  padding: 32px;
  margin:0;
}

/* 404 */
.custom-404-title{
   padding-left: 32px;
   border-bottom: 1px solid #000;
   height:62px;
   line-height: 62px;
   font-size: 24px;
   margin: 0px;
}
.custom-404-text{
	padding: 32px;
	margin: 0px;
}
.custom-404-text p{
    margin: 0px;
}

/* common page */
.common-page-heading{
	margin:0;
	padding-left: 32px;
	height: 62px;
	line-height: 62px;
	border-bottom: 1px solid #000;
}
.common-page-content{
	padding: 32px;
}

@media (max-width: 768px) {
  .about-block-title {
	height: auto;
    white-space: normal;
    word-break: break-word;
  }
}

.pagination {
  display: flex;
  justify-content: center; /* 横中央 */
  align-items: center;     /* 縦中央 */
  height: 62px;
}

.pagination ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 8px;
  margin:0;
}

.pagination li {
  display: inline-block;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 8px 14px;
  color: #000;
  border: 1px solid #000;
  text-decoration: none;
  font-weight: 600;
}

.pagination a:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

.pagination .current {
  background-color: #000;
  color: #fff;
  border-color: #000;
  pointer-events: none;
}

@media (max-width: 768px) {
  .blog-wrapper {
    flex-direction: column;
  }

  .main-content,
  .sidebar {
    flex: 1 1 100%;
  }
}

.custom-row-title{
  height: 62px;
  line-height: 62px;
  margin:0;
  padding-left: 32px;
  border-bottom: 1px solid #000;
}

.custom-row-text{
 margin:0;
 padding-left: 32px;
 padding-top:32px;
 padding-bottom: 32px;
}

/* スマホ枠調整 16px*/
@media (max-width: 768px) {
 .about-block-title,.sidebar-search-title,.breadcrumb,.contact-header,.advantage-title,.section-title,.section-header,.custom-row-title,.custom-404-title, .common-page-heading {
  padding-left: 16px;
 }
.sidebar-search-form,.image-subtitle {
  padding: 0 16px;
 }
 .about-block-paragraph, .advantage-content, .image-container, .text-content,.news-blog-card, .service-item, .feature-card, .custom-404-text, .common-page-content{
  padding:16px;
 }
 .menu-toggle{
	padding-right:16px;
	padding-bottom: 0px;
 }

 .news-blog-title,.service-text{
	margin:0px;
 }
 .news-blog-title{
	margin-top:7px
 }

 .advantage-text{
	margin:16px 0;
 }
 .header-site-title{
	margin-left:16px;
 }

.section-header-button, .service-icon{
	margin-right:16px;
}

 .banner-button{
	padding:5px 10px;
	border:1px solid #000
 }
 .banner-text {
	height:32px;
 }
 .footer-right a{
	font-size: 11px;
 }
 .about-block-title{
	max-width: 100%;
	overflow-wrap: break-word;
 }
 .custom-row-text{
  padding-left: 16px;
  padding-top:16px;
  padding-bottom: 16px;
 }

.site-footer .footer-inner {
	gap:0px;
 }
.contact-label{
	margin:0px;
	height:32px;
	line-height: 32px;
}
.contact-input, .contact-textarea{
	margin-bottom: 16px;
	margin-top:8px;
}
}




