/**
 * Portal Common Styles
 *
 * Shared styles for all portal pages (index, news, etc.)
 * Includes: CSS variables, base resets, header, buttons, SP nav, net shop banner
 *
 * @package Okayama
 */

/* ========================================
   CSS Custom Properties
   ======================================== */

:root {
	--portal-bg: #F9F7EF;
	--portal-blue: #53BDE5;
	--portal-text: #333333;
	--portal-white: #FFFFFF;
	--portal-gray: #D9D9D9;
	--portal-radius-sm: 18px;
	--portal-radius-md: 24px;
	--portal-radius-lg: 30px;
	--portal-radius-pill: 400px;
}

/* ========================================
   Reset & Base for Portal Page
   ======================================== */

html {
	background-color: #F9F7EF;
}

.portal-page {
	margin: 0;
	padding: 0;
	background-color: var(--portal-bg);
	color: var(--portal-text);
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 400;
	line-height: 2;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

.portal-page img {
	max-width: 100%;
	height: auto;
	display: block;
}

.portal-page a {
	text-decoration: none;
}

/* ========================================
   Shared Portal Breadcrumb
   ======================================== */

.portal-breadcrumb {
	padding: 16px 150px;
	max-width: 1400px;
	margin: 0 auto;
}

.portal-breadcrumb__inner {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	line-height: 1.6;
}

.portal-breadcrumb__link {
	color: var(--portal-text);
	transition: opacity 0.3s ease;
}

.portal-breadcrumb__link:hover {
	opacity: 0.7;
}

.portal-breadcrumb__sep {
	display: inline-block;
	width: 6px;
	height: 10px;
	position: relative;
	flex-shrink: 0;
}

.portal-breadcrumb__sep::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 5px;
	height: 5px;
	border-top: 1.5px solid var(--portal-text);
	border-right: 1.5px solid var(--portal-text);
}

.portal-breadcrumb__current {
	color: var(--portal-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ========================================
   Shared Portal Page Title (GROUP 33)
   ======================================== */

.portal-page-title {
	text-align: center;
	padding: 48px 20px 0;
}

.portal-page-title__heading {
	font-size: 40px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	color: var(--portal-text);
}

.portal-page-title__divider {
	margin: 10px auto 0;
	width: 153px;
}

.portal-page-title__divider-img {
	width: 100%;
	height: auto;
}

/* ========================================
   Shared Button Component
   ======================================== */

.portal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 28px;
	background-color: var(--portal-blue);
	color: var(--portal-white);
	border: 2px solid var(--portal-blue);
	border-radius: var(--portal-radius-pill);
	padding: 15px 16px 15px 64px;
	min-width: 240px;
	height: 56px;
	font-family: 'Noto Sans JP', sans-serif;
	font-weight: 500;
	font-size: 16px;
	line-height: 1.6;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.portal-btn span {
	flex: 1;
	text-align: center;
}

.portal-btn:hover {
	background-color: var(--portal-white);
	color: var(--portal-blue);
}

.portal-btn--center {
	display: flex;
	width: fit-content;
	margin: 0 auto;
}

.portal-btn__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* ========================================
   Portal Header
   ======================================== */

.portal-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: var(--portal-white);
}

.portal-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 60px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 150px;
}

.portal-header__logo {
	flex-shrink: 0;
}

.portal-header__logo a {
	display: block;
}

.portal-header__logo-img {
	display: block;
	height: 33px;
	width: 287px;
	max-width: 100%;
}

.portal-header__buttons {
	display: flex;
	gap: 8px;
	align-items: center;
}

.portal-header__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--portal-blue);
	color: var(--portal-white);
	border: 1px solid var(--portal-blue);
	border-radius: var(--portal-radius-pill);
	padding: 4px 24px;
	height: 30px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.6;
	white-space: nowrap;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.portal-header__btn:hover {
	background-color: var(--portal-white);
	color: var(--portal-blue);
}

.portal-header__menu-toggle {
	display: none;
}

/* Header Navigation */
.portal-header__nav {
	border-top: 1px solid #eee;
	background: var(--portal-white);
}

.portal-header__nav-inner {
	display: flex;
	align-items: center;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 150px;
	height: 75px;
}

.portal-header__nav-divider {
	width: 1px;
	height: 40px;
	background-color: var(--portal-gray);
	flex-shrink: 0;
}

.portal-header__nav-item {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex: 1;
	height: 40px;
	font-size: 16px;
	font-weight: 400;
	line-height: 2;
	color: var(--portal-text);
	transition: background-color 0.3s ease;
}

.portal-header__nav-item:hover {
	background-color: #cce4eb;
}

.portal-header__nav-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* Mobile menu */
.portal-header__mobile-menu {
	display: none;
	position: fixed;
	top: 58px;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--portal-white);
	z-index: 999;
	padding: 20px 20px 40px;
	overflow-y: auto;
}

.portal-header__mobile-menu.is-open {
	display: block;
}

.portal-header__mobile-nav {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.portal-header__mobile-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
	font-size: 16px;
	font-weight: 400;
	color: var(--portal-text);
	border-bottom: 1px solid var(--portal-gray);
}

.portal-header__mobile-nav-item svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.portal-header__mobile-nav-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 24px;
}

/* Mobile menu icon */
.portal-header__menu-icon {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 20px;
}

.portal-header__menu-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--portal-blue);
	border-radius: 7px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.portal-header__menu-toggle[aria-expanded="true"] .portal-header__menu-icon span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.portal-header__menu-toggle[aria-expanded="true"] .portal-header__menu-icon span:nth-child(2) {
	opacity: 0;
}

.portal-header__menu-toggle[aria-expanded="true"] .portal-header__menu-icon span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* ========================================
   Net Shop Banner
   ======================================== */

.portal-shop-banner {
	width: 100%;
	max-width: 1100px;
}

.portal-shop-banner__card {
	display: flex;
	align-items: center;
	background-color: var(--portal-white);
	border-radius: var(--portal-radius-lg);
	overflow: hidden;
	height: 250px;
	transition: opacity 0.3s ease;
}

.portal-shop-banner__card:hover {
	opacity: 0.5;
}

.portal-shop-banner__image {
	flex-shrink: 0;
	width: 58%;
	height: 100%;
}

.portal-shop-banner__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.portal-shop-banner__content {
	flex: 1;
	padding: 40px;
	text-align: center;
	margin-left: -175px;
}

.portal-shop-banner__text {
	font-size: 21px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0 0 16px;
}

.portal-shop-banner__logo {
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

/* ========================================
   Shared Search Component
   ======================================== */

.portal-search {
	width: 100%;
	max-width: 1100px;
}

.portal-search__card {
	background-color: var(--portal-white);
	border-radius: var(--portal-radius-md);
	padding: 64px 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.portal-search__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
}

.portal-search__title {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
}

.portal-search__subtitle {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.6;
	color: var(--portal-blue);
	text-transform: uppercase;
}

.portal-search__filters {
	width: 100%;
	max-width: 940px;
}

.portal-search__filter-group {
	margin-bottom: 0;
}

.portal-search__filter-row {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	padding: 16px 0;
}

.portal-search__filter-label {
	font-weight: 700;
	font-size: 16px;
	line-height: 2;
	width: 160px;
	flex-shrink: 0;
	margin: 0;
}

.portal-search__filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 40px;
	flex: 1;
}

.portal-search__filter-line {
	width: 100%;
	height: 1px;
	background-color: var(--portal-gray);
}

.portal-search__checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 16px;
	line-height: 2;
}

.portal-search__checkbox input {
	display: none;
}

.portal-search__checkbox-icon {
	width: 20px;
	height: 20px;
	border: 2px solid var(--portal-gray);
	border-radius: 4px;
	flex-shrink: 0;
	position: relative;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.portal-search__checkbox input:checked + .portal-search__checkbox-icon {
	background-color: var(--portal-blue);
	border-color: var(--portal-blue);
}

.portal-search__checkbox input:checked + .portal-search__checkbox-icon::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 5px;
	height: 10px;
	border: solid var(--portal-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ========================================
   Shared Station Component
   ======================================== */

.portal-station {
	width: 100%;
	max-width: 1100px;
	text-align: center;
}

.portal-station__heading {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-bottom: 40px;
}

.portal-station__title {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
}

.portal-station__subtitle {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.6;
	color: var(--portal-blue);
	text-transform: uppercase;
}

.portal-station__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	justify-content: center;
	margin-bottom: 40px;
}

.portal-station__card {
	position: relative;
	width: 350px;
	height: 200px;
	border-radius: 20px;
	overflow: hidden;
	display: block;
}

.portal-station__card-img {
	position: absolute;
	inset: 0;
}

.portal-station__card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.portal-station__card:hover .portal-station__card-img img {
	transform: scale(1.3);
}

.portal-station__card-label {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 16px;
}

.portal-station__card-name {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--portal-white);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.portal-station__card-arrow {
	flex-shrink: 0;
}

.portal-station__card-arrow svg {
	display: block;
}

.portal-station__card-arrow circle {
	transition: fill 0.3s ease;
}

.portal-station__card-arrow path {
	transition: stroke 0.3s ease;
}

.portal-station__card:hover .portal-station__card-arrow circle {
	fill: var(--portal-blue);
}

.portal-station__card:hover .portal-station__card-arrow path {
	stroke: #fff;
}

/* Vertical Japanese Label (top-left) */
.portal-station__card-vertical {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	writing-mode: vertical-rl;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.1em;
	color: var(--portal-text);
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 4px;
	padding: 10px 6px;
}

/* ========================================
   Shared News Component
   ======================================== */

.portal-news {
	width: 100%;
	max-width: 1100px;
}

.portal-news__card {
	background-color: var(--portal-white);
	border-radius: var(--portal-radius-md);
	padding: 64px 80px;
}

.portal-news__heading {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: center;
	text-align: center;
	margin-bottom: 56px;
}

.portal-news__title {
	font-size: 35px;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
}

.portal-news__subtitle {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.6;
	color: var(--portal-blue);
	text-transform: uppercase;
}

.portal-news__content {
	display: flex;
	flex-direction: column;
	gap: 40px;
	align-items: center;
}

.portal-news__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 940px;
}

.portal-news__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding-bottom: 24px;
	border-bottom: 2px solid var(--portal-gray);
	color: var(--portal-text);
	position: relative;
}

.portal-news__item::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--portal-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.65s ease-in-out;
}

a.portal-news__item:hover::after {
	transform: scaleX(1);
}

a.portal-news__item:hover .portal-news__item-title {
	font-weight: 700;
	color: var(--portal-blue);
}

a.portal-news__item:hover .portal-news__item-date {
	color: var(--portal-blue);
}

.portal-news__item:last-child {
	border-bottom: 1px solid var(--portal-gray);
}

.portal-news__item-meta {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-shrink: 0;
}

.portal-news__item-date {
	font-family: 'Reddit Sans', sans-serif;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.6;
	white-space: nowrap;
	transition: color 0.3s ease;
}

.portal-news__item-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--portal-blue);
	color: var(--portal-white);
	border-radius: var(--portal-radius-pill);
	padding: 0 12px;
	height: 23px;
	font-size: 14px;
	line-height: 1.6;
	white-space: nowrap;
	transition: background-color 0.3s ease;
}

.portal-news__item-tag--emergency {
	background-color: #e52c2c;
}

a.portal-news__item:hover .portal-news__item-tag--emergency {
	background-color: #c92525;
}

.portal-news__item-title {
	flex: 1;
	font-size: 16px;
	line-height: 2;
	margin: 0;
	min-width: 0;
	color: var(--portal-text);
	transition: color 0.3s ease;
}

/* Search button inside filter form */
.portal-search__filters .portal-btn {
	margin-top: 40px;
}

/* Button on <button> elements */
button.portal-btn {
	appearance: none;
	-webkit-appearance: none;
}

/* ========================================
   SP Bottom Navigation
   ======================================== */

.portal-sp-nav {
	display: none;
}

/* ========================================
   Responsive - Tablet (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {

	.portal-breadcrumb {
		padding: 16px 40px;
	}

	.portal-header__inner {
		padding: 0 40px;
	}

	.portal-header__nav-inner {
		padding: 0 40px;
	}

	.portal-shop-banner__card {
		height: 220px;
	}

	/* --- Search --- */
	.portal-search__card {
		padding: 48px 40px;
	}

	.portal-search__filter-row {
		gap: 24px;
	}

	.portal-search__filter-label {
		width: 120px;
	}

	/* --- Station --- */
	.portal-station__card {
		width: 320px;
		height: 183px;
	}

	/* --- News --- */
	.portal-news__card {
		padding: 48px 40px;
	}
}

/* ========================================
   Responsive - Mobile (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {

	.portal-page {
		font-size: 14px;
	}

	.portal-page img {
		height: 100%;
	}

	/* --- Breadcrumb --- */
	.portal-breadcrumb {
		padding: 16px 5%;
	}

	.portal-breadcrumb__inner {
		font-size: 12px;
		overflow-x: auto;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.portal-breadcrumb__inner::-webkit-scrollbar {
		display: none;
	}

	/* --- Page Title --- */
	.portal-page-title {
		padding: 32px 5% 0;
	}

	.portal-page-title__heading {
		font-size: 28px;
	}

	/* --- Header --- */
	.portal-header__inner {
		height: 58px;
		padding: 0 10px 0 10px;
	}

	.portal-header__logo-img {
		height: 24px;
	}

	.portal-header__buttons {
		display: none;
	}

	.portal-header__menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		cursor: pointer;
		padding: 8px;
		width: 40px;
		height: 40px;
	}

	.portal-header__nav {
		display: none;
	}

	/* --- Mobile Menu CTA Buttons --- */
	.portal-header__mobile-nav-btns .portal-header__btn {
		width: 170px;
		height: auto;
		padding: 10px 0;
		font-size: 14px;
		font-weight: 500;
		justify-content: center;
		border-radius: 20px;
	}

	/* --- Shared Button --- */
	.portal-btn {
		height: 48px;
		font-size: 14px;
		font-weight: 400;
		min-width: 240px;
	}

	/* --- Shop Banner --- */
	.portal-shop-banner {
		max-width: none;
		padding-bottom: 80px;
	}

	.portal-shop-banner__card {
		flex-direction: column;
		height: auto;
		border-radius: 20px;
	}

	.portal-shop-banner__image {
		width: 100%;
		height: 135px;
	}

	.portal-shop-banner__content {
		padding: 24px 20px;
		margin-left: 0;
	}

	.portal-shop-banner__text {
		font-size: 16px;
	}

	/* --- SP Bottom Navigation --- */
	.portal-sp-nav {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 1000;
		background: #fff;
		height: 70px;
		align-items: flex-end;
		padding-bottom: 10px;
		justify-content: center;
	}

	.portal-sp-nav__item {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		flex: 1;
		font-size: 10px;
		font-weight: 500;
		color: var(--portal-text);
		text-align: center;
		line-height: 1.4;
		padding: 4px 2px;
	}

	.portal-sp-nav__item svg {
		width: 20px;
		height: 20px;
	}

	.portal-sp-nav__divider {
		width: 1px;
		height: 36px;
		background-color: var(--portal-gray);
		align-self: center;
		flex-shrink: 0;
	}

	/* Add padding to body bottom for fixed nav */
	.portal-page {
		padding-bottom: 70px;
	}

	/* --- Search --- */
	.portal-search {
		max-width: none;
	}

	.portal-search__card {
		border-radius: var(--portal-radius-sm);
		padding: 40px 20px;
		gap: 32px;
	}

	.portal-search__title {
		font-size: 28px;
	}

	.portal-search__subtitle {
		font-size: 14px;
	}

	.portal-search__filter-row {
		flex-direction: column;
		gap: 8px;
		padding: 12px 0;
	}

	.portal-search__filter-label {
		width: auto;
		font-size: 18px;
	}

	.portal-search__filter-options {
		gap: 16px 30px;
	}

	.portal-search__checkbox {
		gap: 8px;
		font-size: 14px;
	}

	.portal-search__checkbox-icon {
		width: 16px;
		height: 16px;
	}

	.portal-search__checkbox input:checked + .portal-search__checkbox-icon::after {
		top: 1px;
		left: 3px;
		width: 4px;
		height: 8px;
	}

	.portal-search__filters .portal-btn {
		margin-top: 32px;
	}

	/* --- Station --- */
	.portal-station {
		max-width: none;
	}

	.portal-station__title {
		font-size: 28px;
	}

	.portal-station__subtitle {
		font-size: 16px;
	}

	.portal-station__grid {
		gap: 10px;
		justify-content: flex-start;
		margin-bottom: 32px;
	}

	.portal-station__card {
		width: calc((100% - 10px) / 2);
		aspect-ratio: 1;
		height: auto;
		border-radius: 20px;
	}

	.portal-station__card-img img {
		border-radius: 20px;
	}

	.portal-station__card-label {
		padding: 12px;
	}

	.portal-station__card-name {
		font-size: 16px;
	}

	.portal-station__card-arrow svg {
		width: 24px;
		height: 24px;
	}

	.portal-station__card-vertical {
		top: 10px;
		left: 10px;
		font-size: 12px;
		padding: 8px 4px;
	}

	/* --- News --- */
	.portal-news {
		max-width: none;
	}

	.portal-news__card {
		padding: 40px 20px;
		border-radius: var(--portal-radius-sm);
	}

	.portal-news__heading {
		margin-bottom: 32px;
	}

	.portal-news__title {
		font-size: 28px;
	}

	.portal-news__subtitle {
		font-size: 14px;
	}

	.portal-news__item {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
		padding-bottom: 16px;
	}

	.portal-news__item-date {
		font-size: 15px;
	}

	.portal-news__item-tag {
		font-size: 12px;
		line-height: 1.7;
	}

	.portal-news__item-title {
		font-size: 14px;
		width: 100%;
	}

	.portal-news__list {
		gap: 20px;
	}
}
