/*   Y O U R   C S S   S T Y L E S

** Add your CSS styles here
** Style all markdown content elements properly
** Use the markdown test file to check it: https://github.com/typemill/typemill/blob/master/content/00-Welcome/03-Markdown-Test.md
** You can activate and use the Tachyons CSS library: https://typemill.net/theme-developers/helper-functions#activate-tachyons

*/

/* Base Layout */
html {
  font-size: 14px; /* ベースフォントサイズを14pxに設定 */
  scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0 !important;
}
footer { margin-top: auto; }

/* Utilities */
.border-box, a, article, aside, div, footer, header, main, nav, section, ul, li, h1, h2, h3, p { box-sizing: border-box; }
.mauto { margin-left: auto; margin-right: auto; }
.w-100 { width: 100%; }
.mw-960 { max-width: 100%; width: 960px; padding: 0 20px; margin: 0 auto; } /* コンテンツ幅を少し広げました */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.dn { display: none; }

/* Colors */
.primary { color: #3eb370; }
.bg-primary { background-color: #3eb370; }
.bg-light { background-color: #f9f9f9; }
.bg-white { background-color: #fff; }
.text-white { color: #fff; }

/* Links */
a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: #3eb370; }

/* --- HEADER --- */
header {
    background: #fff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}
.logo-circle {
    display: inline-block;
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Navigation */
.mainnav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* PC表示時：メニュー項目と検索フィールドを垂直方向に中央揃え */
}
.mainnav li { margin-left: 20px; }
.mainnav a { font-weight: 500; font-size: 0.95rem; }
.burgerbutton { display: none; font-size: 1.5rem; cursor: pointer; }
#burger { display: none; }

@media (max-width: 768px) {
    .mainnav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .mainnav li { margin: 10px 0; }
    #burger:checked ~ ul { display: flex; }
    .burgerbutton { display: block; }
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
    padding: 100px 0;
    text-align: center;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.btn-primary {
    display: inline-block;
    background: #3eb370;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
}
.btn-primary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #3eb370;
    margin: 15px auto 0;
}

/* --- SERVICES / WORKS GRID --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #3eb370;
}
.service-icon {
    font-size: 2rem;
    color: #3eb370;
    margin-bottom: 20px;
    display: block;
}
.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: bold;
}
.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- INFORMATION LIST (HOME) --- */
.info-list {
    max-width: 800px;
    margin: 0 auto;
}
.info-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.info-date {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #3eb370;
    margin-right: 20px;
    min-width: 100px;
}
.info-tags .tag {
    background: #eee;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 10px;
    color: #555;
}
.info-title {
    flex: 1;
    font-weight: 500;
}
.view-more-container { margin-top: 40px; text-align: center; }
.btn-outline {
    border: 2px solid #333;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
}
.btn-outline:hover { background: #333; color: #fff; }

/* --- FOOTER --- */
.site-footer {
    background: #333; /* 濃いグレー */
    color: #fff;       /* 基本文字色を白に */
    padding: 50px 0 20px;
    margin-top: auto;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col { flex: 1; min-width: 250px; }
.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-left: 3px solid #3eb370;
    padding-left: 10px;
    color: #fff;
}
.footer-col p, .footer-col li { font-size: 0.9rem; color: #ccc; margin-bottom: 10px; }
.copyright {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #ccc; /* 文字色を薄いグレーに */
}

/* Typemill Default Overrides */
article img { max-width: 100%; height: auto; }
pre, code { background: #f4f4f4; }

/* border-box */
.border-box, a, article, aside, blockquote, body, code, dd, div, dl, dt, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, html, input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"], legend, li, main, nav, ol, p, pre, section, table, td, textarea, th, tr, ul {box-sizing: border-box;}

/* fonts */
.sans-serif { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; text-rendering: optimizeLegibility; }
.fw4{ font-weight: 400; }
.font-lead{ font-size:1.2rem; }
.lh-lead { line-height: 1.6rem; }
.font-copy{ font-size: 1rem; }
.lh-copy{ line-height: 1.4rem; }

/* link */
a { background-color: transparent; }
.link { text-decoration: none; }
.link, .link:active, .link.active, .link:focus, .link:hover, .link:link, .link:visited { transition: color .15s ease-in;}
.link:focus, main a:focus, footer a:focus{ color: #3eb370; outline: 2px dotted #3eb370; }
nav .active a, main a{ text-decoration: none; color: #3eb370; }
main a:hover{ text-decoration: underline; }
footer a{ 
    text-decoration: none; 
    color: #fff !important; /* リンクを白に */
}
footer a:hover{ 
    color: #3eb370 !important; /* ホバー時はテーマカラー(緑) */
    text-decoration: underline;
}

/* list */
.list { list-style-type: none; }

/* Layouts */
.flex{ display: flex; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.db{ display:block; }
.dib{ display: inline-block; }
.dn{ display: none; }
.overflow-hidden{ overflow: hidden; }

/* Position */
.fixed{ position:fixed; }
.relative{ position:relative; }
.absolute{ position: absolute; }

/* Absolute */
.top-0{ top: 0; }
.left-0{ left: 0; }
.right-0{ right: 0; }
.bottom-0{ bottom: 0; }

/* margins */
.ma0{ margin: 0 0 0 0; }
.ma1{ margin: .1rem; }
.ma2{ margin: .5rem; }
.ma3{ margin: 1rem; }
.ma4{ margin: 2rem; }
.ma5{ margin: 5rem; }
.mt0{ margin-top: 0; }
.mt1{ margin-top: .1rem; }
.mt2{ margin-top: .5rem; }
.mt3{ margin-top: 1rem; }
.mt4{ margin-top: 2rem; }
.mt5{ margin-top: 5rem; }
.mt6{ margin-top: 8rem; }
.mb0{ margin-bottom: 0; }
.mb1{ margin-bottom: .1rem; }
.mb2{ margin-bottom: .5rem; }
.mb3{ margin-bottom: 1rem; }
.mb4{ margin-bottom: 2rem; }
.mb5{ margin-bottom: 5rem; }
.mt6{ margin-top: 8rem; }
.ml0{ margin-left: 0; }
.ml1{ margin-left: .1rem; }
.ml2{ margin-left: .5rem; }
.ml3{ margin-left: 1rem; }
.ml4{ margin-left: 2rem; }
.ml5{ margin-left: 5rem; }
.ml6{ margin-left: 8rem; }
.mr0{ margin-right: 0; }
.mr1{ margin-right: .1rem; }
.mr2{ margin-right: .5rem; }
.mr3{ margin-right: 1rem; }
.mr4{ margin-right: 2rem; }
.mr5{ margin-right: 5rem; }
.mr6{ margin-right: 8rem; }

/* paddings */
.pa0{ padding:0 0 0 0; }
.pa1{ padding: .1rem; }
.pa2{ padding: .5rem; }
.pa3{ padding: 1rem; }
.pa4{ padding: 2rem; }
.pa5{ padding: 5rem; }
.pl0{ padding-left: 0; }
.pl3{ padding-left: 1rem; }
.pr3{ padding-right: 1rem; }

/* colors */
.primary,.hover-primary:hover{ color: #3eb370; }
.bg-primary{ background-color: #3eb370; }
.b--primary{ border-color: #3eb370; }

.dark{ color: #333; }
.bg-light{ background: #f5f5f5; }
.b--light{ border-color: #f5f5f5; }

/* border */
.bt{ border-top-style: solid; }
.bw1{ border-width: .1rem; }
.bw5{ border-width: .5rem; }

/* width */
.w-100{ width: 100%; }
.mw-800-l{ max-width: 800px; }
.mw-960-l{ max-width: 100%; width: 960px; }


/**************************
*  Content Elements  *
**************************/

/* 既存の .mainnav スタイルは新しいスタイルに置き換えられました（上部の Navigation セクションを参照） */
.logo-round{
	background: #333;
	height: 70px;
	width: 70px;
	display: block;
	color: #fff;
	text-decoration: none;
	line-height: 70px;
	border-radius: 50%;
	font-weight: 500;
	font-size: 2rem;
	text-align: center;
}
.logo-classic{
	background: #333;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 2rem;
	text-align: center;
	padding: 5px 15px;
	display: inline-block;
	margin-top: .6rem;	
}
.logo-pure{
	background: transparent;
	color: #333;
	text-decoration: none;
	font-weight:900;
	font-size:2rem;
	padding: 5px 0;
	display: inline-block;
	margin-top: .6rem;
}
/* ロゴ画像のサイズ調整 */
.logo-image {
    height: 45px;       /* 高さを指定して表示領域を確保 */
    width: auto;        /* 幅は画像の比率に合わせて自動調整 */
    max-width: 250px;   /* 必要に応じて最大幅を制限 */
    display: block;     /* 余白の発生を防ぐ */
}

h1{ font-size: 1.8rem; line-height: 2rem; margin-top: 5rem;}
h2{ font-size: 1.6rem; line-height: 1.8rem; margin-top: 4rem;}
h3{ font-size: 1.4rem; line-height: 1.6rem; margin-top: 3rem;}
h4{ font-size: 1rem; line-height: 1.2rem; margin-top: 2.5rem;}
h5{ font-size: .9rem; line-height: 1rem; margin-top: 2rem; text-transform: uppercase; }
h6{ font-size: .9rem; line-height: 1rem; margin-top: 1.75rem; text-transform: uppercase; font-weight:100; }

/* 見出しのmargin-top条件設定 */
/* ページに最初に現れる見出しには適用しない */
article h2:first-of-type {
	margin-top: 0;
}

/* 隣接する見出しタグがh2, h3, h4の場合は適用しない */
h2 + h2, h3 + h2, h4 + h2,
h2 + h3, h3 + h3, h4 + h3,
h2 + h4, h3 + h4, h4 + h4 {
	margin-top: 0;
}

/* Page meta (date and tags) */
.page-meta {
	display: flex !important;
	align-items: center;
	flex-wrap: nowrap;
	gap: 1em;
	margin-top: 0.5em;
	margin-bottom: 0.5em;
	padding-bottom: 1em;
	border-bottom: 1px solid #ddd;
}
.page-date {
	font-size: 0.9em;
	color: #666;
	white-space: nowrap;
}
.page-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 0.5em;
	row-gap: 0.8em;
	column-gap: 0.5em;
}
.page-tags .tag {
	display: inline-block;
	padding: 0.25em 0.75em;
	font-size: 0.85em;
	line-height: 1.5;
	background-color: #e8e8e8;
	color: #333;
	border-radius: 0.25em;
	text-decoration: none;
	transition: background-color 0.2s ease;
	white-space: nowrap;
}
.page-tags .tag:hover {
	background-color: #d0d0d0;
}

/* Informationセクションのタグ一覧コンテナ */
.tags-list-container {
	padding: 0 10px;
	margin-bottom: 2rem;
}

/* スマートフォン向けのタグ一覧スタイル */
@media (max-width: 768px) {
	.tags-list-container {
		padding: 0 5px;
	}
	.page-tags {
		gap: 0.4em 0.4em;
		row-gap: 1em;
		column-gap: 0.4em;
		justify-content: flex-start;
	}
	.page-tags .tag {
		font-size: 0.75em;
		padding: 0.2em 0.6em;
	}
}
body.dark-mode .page-date {
	color: #999;
}
body.dark-mode .page-tags .tag {
	background-color: #3a3a3a;
	color: #e0e0e0;
}
body.dark-mode .page-tags .tag:hover {
	background-color: #4a4a4a;
}

/* Post navigation pagination */
#bottompager {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

#bottompager .navigation {
	min-width: 3rem;
	height: 3rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 0.375rem;
	text-decoration: none;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

#bottompager .navigation:hover,
#bottompager .navigation:focus {
	background-color: rgba(0, 0, 0, 0.05);
	border-color: rgba(0, 0, 0, 0.3);
	transform: translateY(-1px);
}

#bottompager .navigation svg {
	width: 1.5rem;
	height: 1.5rem;
}

body.dark-mode #bottompager {
	border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode #bottompager .navigation {
	border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode #bottompager .navigation:hover,
body.dark-mode #bottompager .navigation:focus {
	background-color: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.3);
}

article a, article a:link, article a:visited{
	text-decoration: none;
	color: #3eb370;
}
article a:active, article a:focus, article a:hover{
	text-decoration: underline;
}
article ul, article p, article blockquote, article pre, article table, article dl{
	margin: 1.7em 0;
}
article img {
	margin: 0;
}
article ul, article ol{
	padding-left: 15px;
}
/* 記事内のリスト装飾 (::marker使用) */
article ul li::marker {
	color: #3eb370;    /* テーマカラー */
	font-size: 1.5em;  /* 大きく */
}

/* 補足: 行間を少し広げて読みやすくする場合 */
article ul li {
	margin-bottom: 0.5em;
	line-height: 1.6;
}
pre{ 
	background-color: #000;
}
code{ 
	background-color: #DDD;
}
code{
	display: inline-block;
	padding: 0 0.5em;
	font-size: 0.8em; 
	line-height: 1.4em;	
	border-radius: 2px;	
	word-break: break-all;
}
pre{
	white-space: pre;
	padding: 16px;
	display: block;	
	max-width: 100%;
	border-radius: 2px;
	overflow-x: auto;
	box-sizing: border-box;
}
pre > code{
	font-size: 0.8em;
}
blockquote{
	position: relative;
	font-family: times new roman,serif;
	font-size: 1em;
	font-style: italic;
	z-index: 2;
	padding-left: 2em;
}
blockquote:before {
	content: '\201C';
	position: absolute;
	top: -0.25em;
	left: -0.25em;
	color: #ddd;
	font-size: 4em;
	z-index: -1;
	font-family: times new roman,serif;
	line-height: 1em;
}
.tm-table {
    overflow-x: auto;
}
table{
	width: 100%;
	border-collapse: collapse;
}
thead{
	border-bottom: 1px solid #e3e3e3;
	border-top: 1px solid #e3e3e3;
	background: #f5f5f5;
	font-weight: 700;
	text-align: left;
}
tbody{}
tr{}
tr:nth-child(odd){ }
tr:nth-child(even){ 
	background-color: #f5f5f5;
}
td,th{ padding: 5px;}
dl{
	border-top: 1px solid #3eb370;
	border-bottom: 1px solid #3eb370;
	padding: 0.5em 0;
	box-sizing: border-box;
}
dt,dd{
	width: 100%;
	margin: 0;
	padding: 3px 5px;
	box-sizing: border-box;
	display: inline-block;
	vertical-align: top;
}
dt{
	font-weight: 700;
}
dt::after{
	content: ":";
}
dd{
	width: 80%
}
hr{
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.left{float:left;}
.right{float:right;}
.center{margin:auto;}

/************************
*  		IMAGES  		*
************************/

img, figure,figure img{
	max-width: 100%;
	height: auto;
	aspect-ratio: attr(width) / attr(height);
}
figure {
    display: table;
    margin: 2em auto;
    padding: 0;
}
figure.right, figure.left {
    width: auto;
    float: none;
    margin: auto auto;
}
figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.8em;
    margin-top: .5em;
    line-height: 1.2em;
}
figure img {
    display: block;
    margin: auto;
}
img{
	max-width:100%;
}
img.left{
	margin: 0 1.7em 1.7em 0;
}
img.right{
	margin: 0 0 1.7em 1.7em;	
}
img.middle{
	margin: auto;
	display: block;
}
 
/************************
*  	TABLE OF CONTENTS 	*
************************/

ul.TOC,.TOC ul{
	list-style: none;
	padding-left: 0px;
	margin-left: 0px;
	margin-top: 0px;
	margin-bottom: 0px;
}
.TOC li:before{
	content: "\2192";
	margin-left: -7px;
	margin-right: 7px;
}
.TOC li.h1:before{
	content: "";
}
ul.TOC{
	background: #f5f5f5;
	width: 100%;
	padding: 20px;
	box-sizing:border-box;
}
li.h1{
	font-weight: 700;
	height: auto;
}
li.h2, li.h3, li.h4, li.h5, li.h6
{
	font-weight: 400;
	padding-left: 25px;	
	height: auto;
}


/*******************
* Headline anchors *
*******************/

a.tm-heading-anchor {
	display:  inline-block;
	margin-left:  -0.8em;
	width: 0.8em;
	font-weight: 300;
    opacity: .5;
    text-decoration: none;
    float: right;
}
a.tm-heading-anchor:hover,a.tm-heading-anchor:focus {
    text-decoration: none;
}
h2:focus > .tm-heading-anchor, 
h2:hover > .tm-heading-anchor, 
h3:focus > .tm-heading-anchor, 
h3:hover > .tm-heading-anchor, 
h4:focus > .tm-heading-anchor, 
h4:hover > .tm-heading-anchor,
h5:focus > .tm-heading-anchor, 
h5:hover > .tm-heading-anchor,
h6:focus > .tm-heading-anchor, 
h6:hover > .tm-heading-anchor{
	opacity: 1;
	text-decoration: none;
}

/************************
*  	DOWNLOAD LINKS 		*
************************/

a.tm-download{}
a.tm-download::before{
	content: "\2193";
  	-webkit-mask: url("data:image/svg+xml; utf8, <svg width='24' fill='currentColor' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M23 12c0-3.037-1.232-5.789-3.222-7.778s-4.741-3.222-7.778-3.222-5.789 1.232-7.778 3.222-3.222 4.741-3.222 7.778 1.232 5.789 3.222 7.778 4.741 3.222 7.778 3.222 5.789-1.232 7.778-3.222 3.222-4.741 3.222-7.778zM21 12c0 2.486-1.006 4.734-2.636 6.364s-3.878 2.636-6.364 2.636-4.734-1.006-6.364-2.636-2.636-3.878-2.636-6.364 1.006-4.734 2.636-6.364 3.878-2.636 6.364-2.636 4.734 1.006 6.364 2.636 2.636 3.878 2.636 6.364zM11 8v5.586l-2.293-2.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414l4 4c0.092 0.092 0.202 0.166 0.324 0.217 0.245 0.101 0.521 0.101 0.766 0 0.118-0.049 0.228-0.121 0.324-0.217l4-4c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-2.293 2.293v-5.586c0-0.552-0.448-1-1-1s-1 0.448-1 1z'></path></svg>") no-repeat 50% 50%;
  	mask: url("data:image/svg+xml; utf8, <svg width='24' fill='currentColor' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M23 12c0-3.037-1.232-5.789-3.222-7.778s-4.741-3.222-7.778-3.222-5.789 1.232-7.778 3.222-3.222 4.741-3.222 7.778 1.232 5.789 3.222 7.778 4.741 3.222 7.778 3.222 5.789-1.232 7.778-3.222 3.222-4.741 3.222-7.778zM21 12c0 2.486-1.006 4.734-2.636 6.364s-3.878 2.636-6.364 2.636-4.734-1.006-6.364-2.636-2.636-3.878-2.636-6.364 1.006-4.734 2.636-6.364 3.878-2.636 6.364-2.636 4.734 1.006 6.364 2.636 2.636 3.878 2.636 6.364zM11 8v5.586l-2.293-2.293c-0.391-0.391-1.024-0.391-1.414 0s-0.391 1.024 0 1.414l4 4c0.092 0.092 0.202 0.166 0.324 0.217 0.245 0.101 0.521 0.101 0.766 0 0.118-0.049 0.228-0.121 0.324-0.217l4-4c0.391-0.391 0.391-1.024 0-1.414s-1.024-0.391-1.414 0l-2.293 2.293v-5.586c0-0.552-0.448-1-1-1s-1 0.448-1 1z'></path></svg>") no-repeat 50% 50%;
  	-webkit-mask-size: cover;
  	mask-size: cover;
	background-color: currentColor;	
	display: inline-block;
	margin-right: 5px;
	width:  24px;
	height: 24px;
	text-decoration: none;
	vertical-align: middle;
}
a.tm-download:hover::before{
	text-decoration: none;
}


/************************
*  		NOTICE 			*
************************/

.notice1 {
    margin: 1em 0;
    padding: 10px 1em;
	background-color: #ffded4;
	border-left: 4px solid #f65a3c;    
}
.notice2 {
    margin: 1em 0;
    padding: 10px 1em;
	background-color: #fff3d4;
	border-left: 4px solid #f6b73c;    
}
.notice3,
.notice4,
.notice5,
.notice6 {
    margin: 1em 0;
    padding: 10px 1em;
    background-color: #d4e0ff;
    border-left: 4px solid #3c7bf6;	
}

/*******************
* youtube videos   *
*******************/

.video-container{
	position: relative;
	text-align: center;
}
img.youtube{
	position: relative;
	max-width: 560px;
}
button.play-video { 
	position: absolute;
	top: 50%;
	left: 50%;
	margin-top: -50px;
	margin-left: -50px;
	height: 100px;
	width: 100px;
	background: #e0474c;
	color: #FFFFFF;
	border-radius: 50%;
	border: 0px;
	padding: 0;
	text-align: center;
}
button.play-video:hover {
	background: #cc4146;
	cursor: pointer;
}
button.play-video::after {
	position: absolute;
	top: 50%;
	margin: -20px 0 0 -15px;
	height: 0;
	width: 0;
	border-style: solid;
	border-width: 20px 0 20px 40px;
	border-color: transparent transparent transparent rgba(255, 255, 255, 0.75);
	content: ' ';
}


/**************
* 	Forms 	  *
**************/

form{
	width: 100%;
	border: none;
	margin: 20px 0 20px 0;
	padding: 0 0 0 0;
}
fieldset{
	width: 100%;
	border: none;
	margin: 0 0 0 0;
	padding: 0 0 0 0;
}
label{
	width: 100%;
	display: block;
	color: #333;
}
input, textarea{
	width: 100%;
	display: block;
	border: 1px solid #ddd;
	padding: 15px;
	margin: 0 0 20px 0;
	background: #f5f5f5;
}
input:focus,select:focus,textarea:focus{
	outline: none;
	border: 1px solid rgba(229, 226, 211, 1);
	box-shadow: 0 0 2px #3eb370;;
}
input[type="submit"],button,.button{
	cursor: pointer;
	color: #fff;
	background: #3eb370;
	font-size: 1em;
	border: 0;
}
input[type="submit"]:hover,button:hover,.button:hover{
	background: rgba(232, 99, 78, 0.8);
}

@media (min-width: 40em) {
	figure.right {
	    width: auto;
	    float: right;
	    margin: 0 0 2em 2em;
	}
	figure.left {
	    width: auto;
	    float: left;
	    margin: 0 2em 2em 0;
	}
}

@media (min-width: 50em) {

	h1{ font-size: 2rem; line-height: 2.8rem; margin-top: 5rem;}
	h2{ font-size: 1.8rem; line-height: 2.3rem; margin-top: 4rem;}
	h3{ font-size: 1.4rem; line-height: 1.4rem; margin-top: 3rem;}
	h4{ font-size: 1.2rem; line-height: 1.4rem; margin-top: 2.5rem;}
	h5{ font-size: .9rem; line-height: 1rem; margin-top: 2rem; text-transform: uppercase; }
	h6{ font-size: .9rem; line-height: 1rem; margin-top: 1.75rem; text-transform: uppercase; font-weight:100; }
	a.tm-heading-anchor { float:left; }
	.dn-l{ display:none; }
	.db-l{ display:block; }
	.dib-l{ display: inline-block; }
	.mt4-l{ margin-top: 2rem; }
	.mt5-l{ margin-top: 5rem; }
	.mt6-l{ margin-top: 8rem; }
	.mb4-l{ margin-bottom: 2rem; }
	.mb5-l{ margin-bottom: 5rem; }
	.mb6-l{ margin-bottom: 8rem; }
	.flex-l{ display:flex; }
	.fw1-l{ font-weight: 100; }
	.fw2-l{ font-weight: 200; }
	.font-lead{ font-size:1.6rem; }
	.lh-lead { line-height: 2.4rem; }
	.font-copy{ font-size: 1.2rem; }
	.lh-copy{ line-height: 1.8rem; }
	.w-30-l{ width: 30%; }
	.mw-800-l{ max-width: 800px; }
	.mw-960-l{ max-width: 100%; width: 960px; }
	.mauto-l{ margin-left:auto; margin-right:auto; }
}

/* --- 投稿一覧：リスト表示 --- */

/* リスト全体のコンテナ */
.post-list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin: 2rem 0;
}

/* 各記事のカード */
.post-card {
	padding-bottom: 2rem;
	border-bottom: 1px solid #eee;
    display: flex;
	flex-direction: column; /* 【重要】スマホは縦並び */
}
.post-card:last-child {
	border-bottom: none;
}

/* リンクブロック（基本スタイル：スマホ向け縦並び） */
.post-card a {
	gap: 1rem;              /* 画像とテキストの間隔 */
	text-decoration: none;
	color: #333;
	transition: opacity 0.3s;
}

.post-card a:hover {
	opacity: 0.8;
}

.post-card a:hover .post-title {
	color: #3eb370; /* テーマカラー */
}

/* サムネイル画像コンテナ（基本スタイル：スマホ向け幅100%） */
.post-thumb-container {
	width: 100%;            /* スマホは横幅いっぱい */
	aspect-ratio: 16 / 9;   /* 比率を固定 */
	background: #f5f5f5;
	border-radius: 4px;
	overflow: hidden;
	position: relative;
	flex-shrink: 0;         /* 縮小しない */
}

/* 画像本体 */
.post-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.post-card a:hover .post-thumb {
	transform: scale(1.05);
}

/* 画像がない場合のプレースホルダー */
.post-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ccc;
	font-weight: bold;
	background-color: #fafafa;
}

/* 記事情報エリア */
.post-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.post-date {
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 0.5rem;
}

.post-title {
	font-size: 1.2rem;     /* スマホでの文字サイズ */
	line-height: 1.4;
	margin: 0 0 0.5rem 0;
	font-weight: bold;
	color: #333;
	transition: color 0.2s;
}

/* --- 検索結果カード専用スタイル（追加） --- */
/* ベース（スマホ）: リンク内をFlexコンテナ化（縦並び） */
.search-card a {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}

/* --- PC・タブレット閲覧時（768px以上）のスタイル上書き --- */
@media (min-width: 768px) {
	/* 横並びに変更 */
	.post-card {
		flex-direction: row;       /* 横方向に並べる */
		align-items: flex-start;   /* 上揃え */
		gap: 1.5rem;
	}

	/* 画像幅を固定 */
	.post-thumb-container {
		width: 260px;
		min-width: 260px;
	}
	
	.post-title {
		font-size: 1.4rem; /* PCでは少し大きく */
	}

    /* 修正: .post-card ではなく .search-card a (リンクタグ) を横並びにする */
    .search-card a {
        flex-direction: row;       /* 横方向に並べる */
        align-items: flex-start;   /* 上揃え */
        gap: 1.5rem;
    }

    /* 修正: 検索結果の画像幅を固定 (.search-card 限定) */
    .search-card .post-thumb-container {
        width: 260px;
        min-width: 260px;
        flex-shrink: 0;             /* 縮小しない */
    }
    
    /* 修正: 検索結果のタイトルサイズ調整 (.search-card 限定) */
    .search-card .post-title {
        font-size: 1.4rem; /* PCでは少し大きく */
    }
}

/* ページネーション（アイコン表示） */
.pagination ul {
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
	gap: 10px;
	margin-top: 3rem;
}

.pagination a, .pagination span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #ddd;
	border-radius: 50%; /* 正円 */
	color: #333;
	text-decoration: none;
	transition: all 0.3s;
}

.pagination a:hover {
	background-color: #3eb370;
	color: white;
	border-color: #3eb370;
}

.pagination .active {
	background-color: #3eb370;
	color: white;
	border-color: #3eb370;
}

.pagination .disabled {
	opacity: 0.3;
	pointer-events: none;
}

/* Prev/Nextを矢印アイコン化 */
.pagination .prev { font-size: 0; }
.pagination .prev::before {
	content: "‹";
	font-size: 24px;
	line-height: 1;
}

.pagination .next { font-size: 0; }
.pagination .next::before {
	content: "›";
	font-size: 24px;
	line-height: 1;
}

/* --- 投稿ページ：前後投稿ナビゲーション --- */
.post-navigation {
	margin-top: 3rem;
	margin-bottom: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

.post-nav-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: #f5f5f5;
	color: #333;
	transition: all 0.2s ease;
	text-decoration: none;
}

.post-nav-link:hover {
	background-color: #3eb370;
	color: #fff;
	text-decoration: none;
}

.post-nav-icon {
	width: 24px;
	height: 24px;
}

/* --- WOHL THEME OVERRIDES --- */

/* Variables */
:root {
    --wohl-primary: #3eb370; /* Wohl Green */
    --wohl-text: #333333;
    --wohl-bg-light: #f5f5f5;
    /* 修正: オリジナルのグラデーションカラーに変更 */
    --wohl-gradient: linear-gradient(135deg, #d1eff8 0%, #c4ebd5 50%, #32bdeb 100%);
}

/* Base Utility */
.full-width {
    width: 100%;
    max-width: 100vw;
    padding-left: 0;
    padding-right: 0;
}
.container-wohl {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.text-center { text-align: center; }
.text-white { color: #fff; }
.bold { font-weight: bold; }
.mt4 { margin-top: 2rem; }

/* 1. Hero Section */
.wohl-hero {
    height: 100vh;
    /* background-size: cover;  <- 削除 */
    /* background-position: center; <- 削除 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* 追加: 拡大した画像がはみ出さないように切り取る */
}

/* --- 追加: 背景画像専用要素とアニメーション --- */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0; /* コンテンツより後ろに配置 */
    /* 20秒かけてゆっくり拡大縮小を繰り返すアニメーション */
    animation: heroZoom 20s linear infinite alternate;
    /* 画像のちらつき防止 */
    backface-visibility: hidden;
    transform: translateZ(0);
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.5); } /* 1.1倍まで拡大 */
}
/* ----------------------------------------- */

.hero-overlay {
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1; /* 背景より前に配置 */
    position: relative; /* z-indexを有効にするため追加 */
}
.hero-content {
    text-align: center;
    z-index: 1;
}
.hero-main-text {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 900;
    color: #333;
    margin-bottom: 40px; /* 行間を広げる: 20px -> 40px */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    line-height: 1.4; /* 行間を追加 */
}
.typing-container {
    font-size: 1.2rem;
    margin-bottom: 50px; /* 行間を広げる: 30px -> 50px */
    border-right: 2px solid #333;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret .75s step-end infinite;
    display: inline-block;
}
.typing-text {
    margin: 0;
    line-height: 1.8; /* 行間を追加 */
    font-weight: 600; /* 太字に設定 */
}
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #3eb370; } }
.hero-btn-container {
    margin-top: 20px;
}

/* Buttons */
.btn-wohl-primary {
    background-color: #3eb370;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
.btn-wohl-primary:hover {
    background-color: #328f5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    color: #fff;
}
.btn-wohl-white {
    background-color: #fff;
    color: var(--wohl-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}
.btn-wohl-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.btn-lg {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* Headings */
.wohl-heading-lg {
    font-size: 2.2rem;
    line-height: 1.4;
    margin-bottom: 3rem;
    font-weight: 700;
}
.wohl-heading-md {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--wohl-primary);
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: inline-block;
}

/* Lead Text */
.wohl-lead {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 3rem;
}

/* Lists */
.wohl-list-circle {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 3rem;
}
.wohl-list-circle li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}
.wohl-list-circle li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    background: var(--wohl-primary);
    border-radius: 50%;
}

/* Columns */
.wohl-columns-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.wohl-col { flex: 1; }
.icon-circle {
    width: 100px;
    height: 100px;
    background: #f0f0f0;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--wohl-primary);
}
/* FontAwesome Fallback Icons (Simple CSS Shapes) */
.icon-microchip::after { content: 'IoT'; font-weight:bold; }
.icon-cloud-up::after { content: 'Sys'; font-weight:bold; }
.icon-web::after { content: 'Web'; font-weight:bold; }

/* AgriDash Section */
.bg-gradient-agri {
    background: var(--wohl-gradient);
    padding: 80px 0;
}
.wohl-columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
@media (max-width: 768px) {
    .wohl-columns-2 { grid-template-columns: 1fr; }
}
.img-circle {
    border-radius: 50%;
    border: 5px solid rgba(255,255,255,0.5);
    max-width: 100%;
    height: auto;
}
.shadow-img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* =========================================
   Swiper Custom Styles
   ========================================= */

/* --- 共通設定 --- */
.swiper {
    width: 100%;
    padding-bottom: 50px !important; /* ドットナビゲーション用の余白 */
}

/* 矢印ボタンの色をテーマカラー(緑)に変更 */
.swiper-button-next,
.swiper-button-prev {
    color: #3eb370 !important;
}

/* ドットの色調整 */
.swiper-pagination-bullet-active {
    background: #3eb370 !important;
}

/* --- 1. Works Swiper (実績グリッド) --- */
.works-swiper .work-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    /* SwiperはFlexベースなので高さ揃えが容易 */
    height: auto; 
    display: flex;
    flex-direction: column;
}

.works-swiper .work-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.works-swiper .work-item h4 {
    padding: 15px 15px 5px;
    margin: 0;
    font-size: 1.1rem;
    color: #3eb370;
}

.works-swiper .work-item p {
    padding: 0 15px 15px;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0;
}

/* --- 2. Website Swiper (WEB制作実績) --- */
.website-swiper {
    width: 100%;              /* 追加: 親要素の幅に合わせる */
    max-width: 1140px; /* PCでの最大幅を制限して巨大化を防ぐ */
    margin: 0;
    overflow: hidden;         /* 追加: 画面外へのはみ出しを防止 */
}

.website-swiper .website-item img {
    width: 100%;
    height: auto;
    max-height: 500px;      /* 高さ制限 */
    object-fit: contain;    /* 比率維持 */
    border: 1px solid #eee;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}













/* Works Categories */
.works-categories {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.work-category {
    margin-bottom: 0;
}

.work-category-title {
    font-size: 1.5rem;
    color: var(--wohl-primary);
    border-bottom: 2px solid var(--wohl-primary);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.work-subcategory-title {
    font-size: 1.2rem;
    color: #333;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.work-details {
    margin-top: 1rem;
}

.work-details summary {
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 25px;
    user-select: none;
}

.work-details summary::-webkit-details-marker {
    display: none;
}

.work-details summary::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wohl-primary);
    transition: transform 0.3s;
    font-size: 0.8rem;
}

.work-details[open] summary::before {
    transform: translateY(-50%) rotate(90deg);
}

.work-details summary:hover {
    color: var(--wohl-primary);
}

.work-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-list > li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.work-list > li:last-child {
    border-bottom: none;
}

.work-list > li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--wohl-primary);
    font-weight: bold;
}

.work-sublist {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.work-sublist li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

.work-sublist li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #999;
}

/* Profile */
.wohl-columns-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
/* Works Services */
.works-services {
    max-width: 1200px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.work-service-item {
    margin-bottom: 0;
}

.service-intro {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .wohl-columns-profile { flex-direction: column; }
    .works-categories {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .work-category {
        margin-bottom: 2rem;
    }
    .works-services {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 3rem;
    }
}
.wohl-col-img {
    flex-shrink: 0;
}
.wohl-col-text {
    flex: 1;
}
.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50% 50% 50% 0; /* Fluid shape mimic */
}
.profile-name {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.profile-name small {
    font-size: 0.6em;
    color: #666;
    font-weight: normal;
}
.profile-en {
    color: #666;
    margin-bottom: 1rem;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.check-list li {
    padding-left: 1.5em;
    margin-bottom: 0.8em;
    position: relative;
}
.check-list li::before {
    content: '✔';
    color: var(--wohl-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}
.profile-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    margin-top: 20px;
}
.profile-box h4 {
    background: #444;
    color: #fff;
    padding: 10px 15px;
    margin: -20px -20px 20px -20px;
    border-radius: 8px 8px 0 0;
    font-size: 1.1rem;
}

/* Service Section Styles */
.service-section-title {
    font-size: 1.1rem;
    color: var(--wohl-primary);
    border-bottom: 2px solid var(--wohl-primary);
    padding-bottom: 8px;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.service-list li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.service-list li:last-child {
    border-bottom: none;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--wohl-primary);
    font-weight: bold;
}

.service-price {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
}

.price-amount {
    font-size: 2rem;
    font-weight: bold;
    color: var(--wohl-primary);
    margin: 10px 0;
}

.price-tax {
    font-size: 1rem;
    font-weight: normal;
    color: #666;
}

.price-description {
    margin-top: 10px;
    color: #666;
}

.service-note {
    background: #fff9e6;
    padding: 15px;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #ffd700;
}

.service-note p {
    margin: 5px 0;
}

.service-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-checklist li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    line-height: 1.8;
    border-bottom: 1px solid #f0f0f0;
}

.service-checklist li:last-child {
    border-bottom: none;
}

.service-checklist li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #ffc107;
    font-weight: bold;
}

/* Table */
.wohl-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}
.wohl-table th, .wohl-table td {
    border: 1px solid #e5e5e5;
    padding: 15px;
    text-align: left;
}
.wohl-table th {
    background: #f9f9f9;
    width: 30%;
    font-weight: bold;
}
.wohl-table td {
    background: #fff;
}

/* Contact */
.bg-contact {
    background-color: #f5f5f5;
    padding: 80px 0 200px 0;
}

/* SVG Animation Container */
.vision-svg-container {
    margin: 3rem auto;
    max-width: 1000px;
}
.vision-svg-container svg {
    width: 100%;
    height: auto;
    max-width: 1010px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wohl-hero {
        height: 70vh;
    }
    .hero-main-text {
        font-size: 2rem;
    }
    .typing-container {
        font-size: 0.9rem;
    }
    .wohl-heading-lg {
        font-size: 1.4rem;
    }
    .wohl-heading-md {
        font-size: 1.2rem;
    }
    .profile-img {
        width: 100%;
        max-width: 300px;
        height: auto;
        aspect-ratio: 1;
    }
    .wohl-col-img {
        text-align: center;
    }
    .mt5 {
        margin-top: 2rem;
    }
    .logo-image {
        height: 40px;
    }
    .post-info {
        margin-top: 16px;
    }
    .post-title {
        font-size: 1.2rem;
    }
    .wohl-lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    .bg-gradient-agri .btn-wohl-white {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    .copyright {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .copyright span {
        display: none;
    }
    .copyright a {
        display: block;
    }
}

/* --- サムネイル用スライダーのスタイル --- */
.website-thumbs {
    width: 100%;              /* 追加: 親要素の幅に合わせる */
    max-width: 800px;
    margin: 0 0 60px 0; /* メインスライダーとの間隔 */
    padding-bottom: 0 !important; /* Thumbsには下部余白不要 */
    box-sizing: border-box;
    overflow: hidden;         /* 追加: はみ出し防止 */
}

.website-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4; /* 非アクティブ時は薄くする */
    cursor: pointer;
    transition: opacity 0.3s;
}

.website-thumbs .swiper-slide:hover {
    opacity: 1;
}

/* 選択中のサムネイル */
.website-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #3eb370; /* テーマカラーで枠線 */
    border-radius: 4px;
}

.website-thumbs .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

/* --- WEBサイト制作実績カテゴリーリスト --- */
.website-category-list {
    max-width: 1000px;
    margin: 40px auto 60px; /* スライダーとの間隔、下に60px */
    padding: 0 10px;
}

.website-category-list ul {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* PC: 5列 */
    gap: 10px 15px; /* 行間と列間 */
    list-style: none;
    padding: 0;
    margin: 0;
}

.website-category-list li {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;      /* 折り返し禁止 */
    overflow: hidden;         /* はみ出し防止 */
    text-overflow: ellipsis;  /* 長すぎる場合は...表示 */
    position: relative;
    padding-left: 18px; /* アイコンのスペース */
}

/* モダンなアイコン（小さな円形ドット） */
.website-category-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #3eb370; /* テーマカラー */
    border-radius: 50%;
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .website-category-list ul {
        grid-template-columns: repeat(3, 1fr); /* タブレット: 3列 */
    }
}

@media (max-width: 600px) {
    .website-category-list ul {
        grid-template-columns: repeat(2, 1fr); /* スマホ: 2列 */
        gap: 8px;
    }
    .website-category-list li {
        font-size: 0.8rem;
    }
}

/* --- Contact Info Box --- */
.contact-info-box {
    background: #fff;
    padding: 40px 30px;
    max-width: 700px;
    margin: 30px auto 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.contact-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.contact-label {
    background: #333;
    color: #fff;
    padding: 2px 10px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
}

.contact-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    line-height: 1;
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 1px;
}

.contact-number:hover {
    color: #3eb370;
    text-decoration: none;
}

.contact-hours {
    color: #666;
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

.contact-notes {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: left;
    max-width: 580px;
    font-size: 0.9rem;
    color: #555;
}

.contact-notes li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-notes li::before {
    content: "※";
    position: absolute;
    left: 0;
    color: #888;
}

/* モバイル対応 */
@media (max-width: 600px) {
    .contact-main {
        flex-direction: column;
        gap: 5px;
    }
    .contact-number {
        font-size: 1.8rem;
    }
    .contact-info-box {
        padding: 30px 20px;
    }
}

/* --- スマートフォン閲覧時はサムネイルを非表示 --- */
@media (max-width: 768px) {
    .website-thumbs {
        display: none !important;
    }
    .swiper-wrapper {
        width: 0 !important; /* なぜか0にしないとスライダーが巨大になる */
    }
    
    /* サムネイルが消えた分、メインスライダーの下部余白を少し調整 */
    .website-swiper {
        margin-bottom: 0; 
    }
}

/* =========================================
   Swiper ナビゲーション矢印：半透明円形スタイル（小サイズ版）
   ========================================= */

/* 1. ボタンの土台（半透明の円） */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(255, 255, 255, 0.5) !important;
    color: #333 !important;
    border-radius: 50% !important;
    
    /* --- 円のサイズを小さく変更 (50px → 35px) --- */
    width: 35px !important;
    height: 35px !important;
    
    top: 50% !important;
    transform: translateY(-50%);
    margin-top: 0 !important;
    
    background-image: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Swiperデフォルトのアイコンフォントを無効化 */
.swiper-button-next:after,
.swiper-button-prev:after {
    content: '' !important;
}

/* 2. 矢印の形状 */
.swiper-button-next::before,
.swiper-button-prev::before {
    content: '';
    display: block;
    
    /* --- 矢印のサイズも小さく変更 (10px → 8px) --- */
    width: 8px;
    height: 8px;
    
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    position: absolute;
    top: 50%;
    left: 50%;
}

/* 次へボタン（右向き）の位置調整 */
.swiper-button-next::before {
    transform: translate(-70%, -50%) rotate(45deg);
}

/* 前へボタン（左向き）の位置調整 */
.swiper-button-prev::before {
    transform: translate(-30%, -50%) rotate(-135deg);
}

/* --- ホバー時のアクション --- */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* =========================================
   Page Loader (Loading Animation)
   ========================================= */

/* ローディング画面のコンテナ（全画面固定） */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* 背景色（白） */
    z-index: 9999; /* 最前面に表示 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease; /* フェードアウトのアニメーション */
}

/* 読み込み完了時に付与するクラス */
.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* 操作を阻害しないようにする */
}

/* スピナー（回転する円） */
.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3; /* 薄いグレー */
    border-top: 4px solid #3eb370; /* テーマカラー（緑） */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 回転アニメーション定義 */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   Google Site Search Styles
   ========================================= */

/* メニュー項目としての調整 */
.menu-search-item {
    display: flex;
    align-items: center;
}

/* 検索フォームコンテナ */
.header-search-form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 3px 10px;
    background: #fff;
    margin: 0 !important;
    width: auto !important;
}

/* 入力フィールド */
.header-search-form input[type="text"] {
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 5px !important;
    width: 140px !important;
    font-size: 0.9rem;
    box-shadow: none !important;
    outline: none !important;
    color: #333;
}
.header-search-form input[type="text"]:focus {
    border: none !important;
    box-shadow: none !important;
}

/* 検索ボタン */
.header-search-form button {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    transition: color 0.3s;
    width: auto !important;
}
.header-search-form button:hover {
    color: #3eb370;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .menu-search-item {
        margin: 10px 0 0 20px;
    }
    .header-search-form {
        width: 100% !important;
        max-width: 250px;
    }
    .header-search-form input[type="text"] {
        width: 100% !important;
    }
}

