@charset "utf-8";
/* CSS Document */

/* === Reset === */
*, *::before, *::after {
	box-sizing: border-box;
}
body {
	margin: 0;
	font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
	font-weight: 400;
	line-height: 1.8;
	color: #333;
	background-color: #fff;
	overflow-x: hidden;
}
html {
	scroll-behavior: smooth;
}
/* メインコピー（中央600px部分のキャッチ） */
	
.layout {
    overflow-x: hidden;
}
.main-copy {
	font-family: 'Noto Serif JP', serif;
	font-weight: 600;
	font-size: 30px; /* 見出しサイズ調整可能 */
	line-height: 1.3;
	text-align: center;
	margin-bottom: 50px;
}
/* サブコピー／本文 */
.main-subcopy {
	font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.8;
	max-width: 600px; /* 中央メイン幅に合わせる */
	margin: 0 auto 40px auto;
}
/* ロゴ・英字部分 */
.logo {
	font-family: 'Josefin Sans', sans-serif;
	font-weight: 300;
	font-size: 24px;
	letter-spacing: 0.1em;
}
/* 見出し h1,h2, h3 */
/* 05.アメリカンな(?)吹き出し */
p{
	font-size: 1.2em;
}
h1 {
    position: relative;
    padding: 0px 20px;
    color: #333;
    background: #fff;
    border-bottom: #333 solid 3px;
    background-image: -webkit-gradient(linear, left top, right bottom, from(rgba(255, 255, 255, 0.0)), color-stop(0.4, rgba(255, 255, 255, 0.0)), color-stop(0.4, rgba(0, 0, 0, 0.1)), color-stop(0.6, rgba(0, 0, 0, 0.1)), color-stop(0.6, rgba(255, 255, 255, 0.0)), to(rgba(255, 255, 255, 0.0)));
    background-image: -webkit-linear-gradient(top -45deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, transparent 60% );
    background-image: -moz-linear-gradient(top -45deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, transparent 60% );
    background-image: -o-linear-gradient(top -45deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, transparent 60% );
    background-image: linear-gradient(to bottom -45deg, transparent 40%, rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.1) 60%, transparent 60% );
    background-size: 4px 4px;
    margin: 0;
}
h1:before {
    content: " ";
    position: absolute;
    top: 100%;
    left: 24px;
    width: 0;
    height: 0;
    border-width: 12px;
    border-style: solid;
    border-color: transparent;
    border-top-color: #333;
}
h1:after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 28px;
    width: 0;
    height: 0;
    border-width: 8px;
    border-style: solid;
    border-color: transparent;
    z-index: 1;
}
h1.about {
    background: #FF62AB;
}
h1.about:after {
border-top-color:#FF62AB;
}
h1.philosophy {
    background: #4CCBFF;
}
h1.philosophy:after {
border-top-color:#4CCBFF;
}
h1.process {
    background: #20549B;
	color: white;
}
h1.process:after {
border-top-color:#20549B;
}
h1.services {
    background: #ffd131;
}
h1.services:after {
border-top-color:#ffd131;
}
h1.works {
    background: #FF9731;
}
h1.works:after {
border-top-color:#FF9731;
}
.typing-bar {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-top: 50px;
	margin: 0 0 100px 0;
}
.line-wrap {
	position: relative;
	margin-bottom: 20px;
	width: max-content;
	overflow: visible;
}
.bar-text {
	position: relative;
	display: inline-block;
	transform: rotate(357deg); /* テープ風斜め */
	transform-origin: left center;
	padding: 0 50px;
}
.bar-text span {
	position: relative;
	z-index: 1;
	color: #084986;
	font-size: 32px;
	transform: translateX(-100%);
	opacity: 0;
	white-space: nowrap;
	transition: transform 1s ease, opacity 1s ease;
}
/* バー */
.bar {
	position: absolute;
	top: 0;
	left: 0;
	height: 60px;
	width: 0; /* 最初は0 */
	background-color: #ffffff;
	z-index: 0;
}
h2, h3 {
	font-family: 'Noto Serif JP', serif;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 16px 0;
	color: #004979;
}
/* リンクやボタン文字 */
a, button {
	font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
	font-weight: 500;
}
/* 左背景 */
.left-area, .right-area {
	position: fixed;
	top: 0;
	height: 100%;
	overflow: hidden;
	z-index: 0;
}
.left-area {
	left: 0;
	width: calc((100% - 600px) / 2);
}
.left-area .bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0;
	transition: opacity 1s ease;
}
.left-area .bg.active {
	opacity: 1;
}
/* 中央エリア */
.center-area {
	max-width: 600px;
	margin: 0 auto;
	padding: 0;
	position: relative;
	z-index: 1;
	background: #fff;
	box-shadow: -10px 0 15px -5px rgba(0, 0, 0, 0.3), 10px 0 15px -5px rgba(0, 0, 0, 0.3);
}
.center-area section {
	padding: 50px 40px;
}
.mainarea {
	display: flex;
	height: 100lvh;
	flex-direction: column;
	justify-content: center;
	background: #4ccbff;
}
section {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
section#sec1 {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
/* 右背景 */
.right-area {
	right: 0;
	width: calc((100% - 600px) / 2);
	background: linear-gradient(to bottom, #C3E9F7, #97D7DE, #6B8F8F);
	transition: background 1s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.right-content {
	width: 80%;
	text-align: center;
}
/* 右ナビ */
.side-nav {
	display: flex;
	flex-direction: column;
	width: fit-content;
	margin-inline: auto;
	gap: 15px;
}

.side-nav a.link-philosophy {
	border: 10px solid #4CCBFF;
}
.side-nav a.link-services {
	border: 10px solid #FFD131;
}
.side-nav a.link-works {
	border: 10px solid #FF9731;
}
.side-nav a.link-process {
	border: 10px solid #20549B;
}
.side-nav a.link-about {
	border: 10px solid #FF62AB;
}
.side-nav a:hover {
	opacity: 0.7;
}
.side-nav a {
	color: #3d616f;
	text-decoration: none;
	font-weight: bold;
	transition: opacity 0.3s;
	padding: 10px 20px;
	border-radius: 30px;
	border: 5px solid #FFFFFF;
	background-color: #FFFFFF;
	text-align: center;
	display: flex;          /* ← 追加：2段表示にする */
	flex-direction: column; /* ← 追加：縦方向に並べる */
}
.side-nav a span {
	font-weight: normal;
	font-size: 12px;
	opacity: 0.8;
	margin-top: 2px;
	border-top: 1px solid #cccccc;
}

/* ハンバーガー */
.hamburger {
	position: fixed;
	top: 15px;
	right: 40PX; /* center-area の右端から20px左 */
	z-index: 1001;
	width: 30px;
	height: 22px;
	cursor: pointer;
	display: block; /* モバイル表示用 */
}
.hamburger span {
	display: block;
	height: 4px;
	margin: 4px 0;
	background: #333;
	border-radius: 2px;
	transition: 0.4s;
}
.hamburger.active span {
	background: #939393;
}
.hamburger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
	opacity: 0;
}
.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}
/* モバイルメニュー */
.mobile-nav {
	position: fixed;
	inset: 0;
	background: rgb(255 255 255 / 90%);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s;
	z-index: 1000;
}
.mobile-nav.show {
	opacity: 1;
	pointer-events: all;
}
.mobile-nav a {
	color: #fff;
	font-size: 1.5rem;
	text-decoration: none;
}
/*wp記事読み込み*/
#news {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.news-card {
	display: flex;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: 0.3s;
}
.news-card:hover {
	background: #f9f9f9;
}
.news-thumb {
	width: 120px;
	height: 80px;
	object-fit: cover;
	flex-shrink: 0;
}
.news-text {
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.news-date {
	font-size: 0.85rem;
	color: #777;
	margin-bottom: 4px;
}
.news-title {
	font-size: 1rem;
	font-weight: bold;
	color: #004979;
	text-decoration: none;
}
.news-title:hover {
	text-decoration: underline;
}

/* レスポンシブ */
@media (max-width: 1080px) and (min-width: 650px) {
.hamburger {
	right: calc((100% - 600px)/2 + 20px);
}
}

@media (max-width:1079px) {
.hamburger {
	display: block;
}
.right-content {
	display: none;
}
	
	
	
.side-nav a.home-link {
	background: #cccccc;
}	
.side-nav a.link-philosophy {
	background: #4CCBFF;
}
.side-nav a.link-services {
	background: #FFD131;
}
.side-nav a.link-works {
	background: #FF9731;
}
.side-nav a.link-process {
	background: #20549B;
}
.side-nav a.link-about {
	background: #FF62AB;
}
}

@media (min-width:1080px) {
.hamburger {
	display: none;
}
}

@media (max-width:640px) {
p{
	font-size: 4vw;
}
.mainarea {
    display: flex;
    height: auto;
    flex-direction: column;
    justify-content: center;
}
.center-area {
	margin: 0 20px;
}
.left-area, .right-area {
	width: 20px;
}
.typing-bar {
	margin: 50px 0 0 0;
}
/* ラップ全体 */
.line-wrap {

}
/* バー＋文字をまとめて斜めにする */
.bar-text {
	position: relative;
	display: inline-block;
	transform: rotate(357deg);
	transform-origin: left center;
	padding: 10px 70px 10px 70px;
}
/* 文字 */
.bar-text span {
	position: relative;
	z-index: 1;
	color: #084986;
	font-size: 5vw;      /* 画面幅に応じて自動サイズ */
	line-height: 1.2;
	transform: translateX(-100%);
	opacity: 0;
	white-space: nowrap;
	transition: transform 0.8s ease, opacity 0.8s ease;
	top: -13px;
}
/* バー */
.bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	z-index: 0;
}
section {
	height: auto;
}
}