/*
Theme Name: VIPO EN 2026
Theme URI: https://www.vipo.or.jp/
Author: VIPO
Description: VIPO English Portal Theme
Version: 1.0.0
*/


@import url('https://fonts.googleapis.com/css2?family=Inter:wght=300;400;600;700&display=swap');

:root {
  --vipo-red: #E60012;
  --vipo-dark-red: #B3000E;
}

body {
  font-family: 'Inter', sans-serif;
}

.hero-gradient {
  background: linear-gradient(rgba(230, 0, 18, 0.8), rgba(179, 0, 14, 0.8)), 
              url('https://images.unsplash.com/photo-1540959733332-e94e270b2d42?auto=format&fit=crop&q=80&w=2000');
  background-size: cover;
  background-position: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--vipo-red);
  margin-top: 10px;
}

/* 会員カード（リンクなしのためホバー時の動き・インタラクションは一切なし） */
.member-card {
  border: 1px solid rgba(226, 232, 240, 0.9);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

.nav-glass {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

.text-vipo-red { color: var(--vipo-red); }
.bg-vipo-red { background-color: var(--vipo-red); }
.border-vipo-red { border-color: var(--vipo-red); }

/* --- アニメーション用カスタムCSS --- */
/* 初期状態：透明かつ少し下に配置 */
.fade-in-diamond {
  opacity: 0;
  transform: translateY(30px) rotate(45deg);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* スクロール検知で発火するクラス */
.fade-in-diamond.is-visible {
  opacity: 1;
  transform: translateY(var(--desktop-offset, 0px)) rotate(45deg);
}

/* 常時呼吸するようなフローティングアニメーション */
@keyframes floatOdd {
  0%, 100% { transform: translateY(calc(var(--desktop-offset, 0px) - 3px)) rotate(45deg); }
  50% { transform: translateY(calc(var(--desktop-offset, 0px) + 3px)) rotate(45deg); }
}
@keyframes floatEven {
  0%, 100% { transform: translateY(calc(var(--desktop-offset, 0px) + 3px)) rotate(45deg); }
  50% { transform: translateY(calc(var(--desktop-offset, 0px) - 3px)) rotate(45deg); }
}

/* 可視化された後、常にふわふわさせる */
.fade-in-diamond.is-visible.float-odd {
  animation: floatOdd 4s ease-in-out infinite;
}
.fade-in-diamond.is-visible.float-even {
  animation: floatEven 4s ease-in-out infinite;
}

/* 光と影がより早く、ダイナミックにたゆたうアニメーション背景 */
@keyframes activeGlowChange {
  0% {
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: 10% 20%, 90% 50%, 50% 80%;
  }
  50% {
    background-size: 120% 120%, 125% 125%, 105% 105%;
    background-position: 25% 35%, 75% 35%, 45% 85%;
  }
  100% {
    background-size: 100% 100%, 100% 100%, 100% 100%;
    background-position: 10% 20%, 90% 50%, 50% 80%;
  }
}

.bg-glow-effect {
  background-color: #ffffff;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(230, 0, 18, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 50%, rgba(230, 0, 18, 0.09) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 40%);
  animation: activeGlowChange 8s ease-in-out infinite;
}

/* サイドポップアップリンク（初期状態：右側に隠れている） */
.sticky-promo-badge {
  transform: translateX(120%);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
  opacity: 0;
}

/* JSでクラスが付与されたらスッと登場 */
.sticky-promo-badge.is-shown {
  transform: translateX(0);
  opacity: 1;
}



/* 固定ページ用 */
/*
.pp-h4 {
    text-align: left;
    font-size: 22px;
    border-bottom: 1px solid #eee;
    margin-bottom: 1em;
}*/
.pp-h5 {
    margin-top: 2em;
    text-align: left;
    font-size: 17px;
    font-weight: bold;
    line-height: 3;
}
p>strong {
    font-size: 16px;
    line-height: 170%;
    text-align: left;
}
/*
h4.wp-block-heading {
	line-height: 3;
}*/

.contact-form table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed; /* 各列の幅を均等配分・固定して崩れを防ぐ */
}
.contact-form input,
.contact-form textarea {
	border: 1px solid lightgray;
	border-radius: 6px;
	margin-bottom: 1em;
	font-weight: normal;
}
.contact-form input[type="text"],
.contact-form td,
.contact-form th {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
}
.contact-form textarea {
	width: 100%;
}
.contact-form p {
	font-weight: bold;
	line-height: 2;
}
.contact-form p small {
	font-weight: normal;
}
.contact-form .compulsory {
	color: red;
}

/* Submitボタンのスタイル指定 */
input[type="submit"],
button[type="submit"] {
	background-color: #e00b0b; /* 赤色背景 */
	color: #ffffff;             /* 白文字 */
	border: none;               /* 枠線消去 */
	border-radius: 20px;        /* 角丸 */
	padding: 10px 24px;         /* 余白（高さと幅の調整） */
	font-size: 14px;            /* 文字サイズ */
	font-weight: bold;          /* 太字 */
	cursor: pointer;            /* ホバー時にポインター化 */
	transition: background-color 0.2s ease, transform 0.1s ease;
	line-height: 1.5;
}
/* マウスを乗せた時のホバー効果 */
input[type="submit"]:hover,
button[type="submit"]:hover {
	background-color: black;
}
/* クリックした瞬間の効果 */
input[type="submit"]:active,
button[type="submit"]:active {
	transform: scale(0.98);
}


@media (max-width: 768px) {
	header {
		height: unset!important;
		padding-top: 7rem !important;
		padding-bottom: 2rem;
	}
}
