/*!
Theme Name: fukushima-aog
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: fukushima-aog
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.

fukushima-aog 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%;
}

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

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

/**
 * 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: var(--color-text-dark, #404040);
	font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 18px;
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	font-family: var(--font-heading);
	color: var(--color-text-dark);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 0.6em;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 20px; }
h6 { font-size: 18px; }

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: var(--color-teal-hover, #2C7077);
	text-decoration: none;
}

a:visited {
	color: var(--color-teal-hover, #2C7077);
}

a:hover,
a:focus,
a:active {
	color: var(--color-teal-accent, #57B7C0);
	text-decoration: none;
}

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: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	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;
}

/*--------------------------------------------------------------
# fukushima-aog Front Page Design
(Ported from wp-content/themes/style.css design comp)
--------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --color-bg-cream: #FAF0E6;
  --color-bg-white: #FFFFFF;
  --color-text-dark: #0D2123;

  --color-teal-dark: #123033;
  --color-teal-light: #ABDBE0;
  --color-teal-accent: #57B7C0;
  --color-teal-hover: #2C7077;

  --color-pink-light: #FFE9EF;
  --color-pink-accent: #FF6F96;
  --color-pink-deep: #F40043;

  --color-tan: #E6B482;
  --color-orange: #C87828;

  --font-heading: 'Oswald', 'Noto Sans JP', sans-serif;
  --font-body: 'Avenir Next', 'Noto Sans JP', sans-serif;

  --site-width: 980px;
}

.fukushima-front a { color: inherit; text-decoration: none; }
.fukushima-front img { max-width: 100%; display: block; }

.fukushima-front .wrap {
  max-width: var(--site-width);
  margin: 0 auto;
}

/* ===== ヘッダー（全ページ共通 / header.php） ===== */
#site-header {
  background: var(--color-bg-cream);
  border-bottom: 1px solid rgba(13,33,35,0.08);
}
#site-header .header-inner {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px;
  min-height: 71px;
}
#site-header .header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  order: 1;
}
#site-header .logo-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
#site-header .logo-block .site-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 25px;
  line-height: 1.41;
  color: var(--color-text-dark);
}
#site-header .logo-block .site-name-en {
  font-size: 11px;
  color: var(--color-text-dark);
  opacity: 0.75;
}
#site-header nav.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  order: 2;
}
#site-header nav.main-nav .main-nav-item {
  position: relative;
}
#site-header nav.main-nav .main-nav-item > a {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  padding: 10px 16px;
  color: var(--color-text-dark);
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
#site-header nav.main-nav .main-nav-item > a.active {
  background: var(--color-teal-hover);
  color: #fff;
}
#site-header nav.main-nav .main-nav-item > a:hover:not(.active) {
  color: var(--color-teal-hover);
}

/* サブメニュー内トグルボタン（スマホのみ表示。PCはホバーで開くため不要） */
#site-header nav.main-nav .submenu-toggle {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
}
#site-header nav.main-nav .submenu-toggle::before {
  content: "";
  display: block;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-dark);
  border-bottom: 2px solid var(--color-text-dark);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
#site-header nav.main-nav .main-nav-item.submenu-open .submenu-toggle::before {
  transform: rotate(-135deg);
}

/* 子メニューを持つ項目に開閉インジケーター（▾）を表示 */
#site-header nav.main-nav .has-submenu > a::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  vertical-align: 2px;
}

/* サブメニュー本体 */
#site-header nav.main-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
#site-header nav.main-nav .sub-menu a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
#site-header nav.main-nav .sub-menu a:hover {
  background: rgba(171, 219, 224, 0.3);
  color: var(--color-teal-hover);
}

/* PC: ホバー（またはキーボードフォーカス）でドロップダウン表示 */
@media (min-width: 721px) {
  #site-header nav.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 33, 35, 0.15);
    z-index: 100;
  }
  #site-header nav.main-nav .has-submenu:hover .sub-menu,
  #site-header nav.main-nav .has-submenu:focus-within .sub-menu {
    display: block;
  }
}
#site-header .btn-member {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  background: var(--color-teal-hover);
  color: #fff;
  padding: 10px 22px;
  margin-left: 12px;
  border: 1px solid var(--color-teal-hover);
  border-radius: 0;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
  white-space: nowrap;
  order: 3;
}
#site-header .btn-member:hover {
  background: #fff;
  color: var(--color-teal-dark);
}

#site-header .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
#site-header .hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  transition: transform .25s ease, opacity .25s ease;
}
#site-header .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-header .hamburger.open span:nth-child(2) { opacity: 0; }
#site-header .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== メインビジュアル（スライダー） ===== */
.fukushima-front .hero-slider {
  position: relative;
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, #ffe0e8 0%, #fff5ec 45%, #eaf6f7 100%);
  overflow: hidden;
}
.fukushima-front .hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: fukushimaHeroFade 8s infinite;
}
.fukushima-front .hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fukushima-front .hero-slide:nth-child(1) { animation-delay: 0s; }
.fukushima-front .hero-slide:nth-child(2) { animation-delay: 4s; }
@keyframes fukushimaHeroFade {
  0%   { opacity: 0; }
  6%   { opacity: 1; }
  44%  { opacity: 1; }
  50%  { opacity: 0; }
  100% { opacity: 0; }
}
.fukushima-front .hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.fukushima-front .hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
}
.fukushima-front .hero-dots span.active {
  background: #fff;
}

/* ===== カードグリッド共通 ===== */
.fukushima-front .section {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 20px 10px;
  background: #fff;
}
.fukushima-front .card-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.fukushima-front .card-row.single .card {
  flex: 0 0 calc((100% - 20px) / 2);
}

.fukushima-front .card {
  flex: 1;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
  border: 2px solid #fff;
  overflow: hidden;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity .25s ease;
  position: relative;
}
.fukushima-front .card:hover { opacity: 0.51; }

.fukushima-front .card-banner {
  padding: 0;
  height: 106px;
  min-height: 0;
  background: #fff;
}
.fukushima-front .card-banner img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ===== お知らせ2カラム ===== */
.fukushima-front .notice-section {
  background: #fafafa;
  padding: 40px 0;
}
.fukushima-front .notice-columns {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  gap: 30px;
  padding: 0 10px;
}
.fukushima-front .notice-col {
  flex: 1;
  padding: 24px 20px 28px;
  border-radius: 6px;
}
.fukushima-front .notice-col--member {
  background: rgba(171, 219, 224, 0.25);
}
.fukushima-front .notice-col--citizen {
  background: var(--color-bg-cream);
}
.fukushima-front .notice-col h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 26px;
  text-align: center;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 3px solid;
}
.fukushima-front .notice-col--member h2 {
  color: var(--color-teal-dark);
  border-bottom-color: var(--color-teal-accent);
}
.fukushima-front .notice-col--citizen h2 {
  color: var(--color-pink-deep);
  border-bottom-color: var(--color-pink-accent);
}
.fukushima-front .notice-item {
  display: block;
  background: rgba(171,219,224,0.20);
  border: 1px solid rgba(171,219,224,0.75);
  border-radius: 0;
  padding: 14px 16px;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: opacity .25s ease;
}
.fukushima-front .notice-item:hover {
  opacity: 0.7;
}
.fukushima-front .notice-empty {
  font-size: 14px;
  opacity: 0.7;
}
.fukushima-front .notice-more-wrap {
  text-align: right;
  margin-top: 14px;
}
.fukushima-front .notice-more {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: opacity .25s ease;
}
.fukushima-front .notice-more:hover {
  opacity: 0.6;
}
.fukushima-front .notice-col--member .notice-more {
  color: var(--color-teal-hover);
}
.fukushima-front .notice-col--citizen .notice-more {
  color: var(--color-pink-deep);
}
.fukushima-front .notice-item .notice-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
}
.fukushima-front .notice-item .notice-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 10px;
  font-size: 12px;
  color: var(--color-text-dark);
  opacity: 0.8;
}
.fukushima-front .notice-item .notice-badge {
  background: none;
  border: 1px solid var(--color-teal-dark);
  color: var(--color-teal-dark);
  padding: 5px 11px;
  font-size: 12px;
  white-space: nowrap;
}

/* 県民の皆様へ列は会員向け列と同じ .notice-item を使い、
   幅・余白・文字サイズは統一。色味だけをピンク系に変える */
.fukushima-front .notice-col--citizen .notice-item {
  background: rgb(239 192 205 / 12%);
  border-color: rgba(255, 111, 150, 0.5);
}
.fukushima-front .notice-col--citizen .notice-badge {
  border-color: #965050;
  color: #965050;
}

/* ===== リンクバナー行 ===== */
.fukushima-front .link-banners-section {
  background-color: rgb(230, 180, 130);
  padding: 30px 0;
}
.fukushima-front .link-banners {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.fukushima-front .link-banner {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  padding: 10px;
  transition: opacity .25s ease;
}
.fukushima-front .link-banner:hover { opacity: 0.7; }
.fukushima-front .link-banner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== フッター（全ページ共通 / footer.php） ===== */
#site-footer {
  background: #fdf8f3;
  border-top: 5px solid var(--color-pink-accent);
  text-align: center;
  padding: 40px 10px 30px;
}
#site-footer nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
#site-footer nav a {
  font-family: var(--font-heading);
  font-size: 13px;
  padding: 8px 14px;
  color: var(--color-text-dark);
  text-decoration: none;
}
#site-footer nav a.active {
  color: var(--color-teal-hover);
  font-weight: 500;
}
#site-footer .footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 4px;
}
#site-footer .footer-logo-en {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 16px;
}
#site-footer .footer-address,
#site-footer .footer-tel {
  font-size: 14px;
  margin-bottom: 2px;
}
#site-footer .footer-copyright {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 16px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 720px) {
  #site-header .header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  #site-header .header-top { order: 1; width: 100%; justify-content: space-between; }
  #site-header .btn-member { order: 2; align-self: center; margin-left: 0; }
  #site-header .hamburger { display: flex; }
  #site-header nav.main-nav {
    order: 3;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  #site-header nav.main-nav.open { display: flex; }
  #site-header nav.main-nav .main-nav-item > a {
    padding: 16px 16px;
    border-top: 1px solid rgba(13,33,35,0.08);
  }

  /* スマホ: サブメニューはタップで開閉するアコーディオン */
  #site-header nav.main-nav .submenu-toggle {
    display: block;
  }
  #site-header nav.main-nav .sub-menu {
    display: none;
    background: rgba(171, 219, 224, 0.15);
  }
  #site-header nav.main-nav .main-nav-item.submenu-open .sub-menu {
    display: block;
  }
  #site-header nav.main-nav .sub-menu a {
    padding: 10px 16px 10px 28px;
    border-top: 1px solid rgba(13,33,35,0.08);
  }

  .fukushima-front .card-row { flex-direction: column; }
  .fukushima-front .notice-columns { flex-direction: column; }
  .fukushima-front .link-banners { flex-direction: column; }
}

/*--------------------------------------------------------------
# fukushima-aog Page Template (page.php)
--------------------------------------------------------------*/
.page-title-band {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-title-band-inner h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 14px 40px;
  letter-spacing: 0.05em;
}

/* アイキャッチ未設定時のフォールバック */
.page-title-band.no-image {
  background: var(--color-teal-light);
}

@media (max-width: 720px) {
  .page-title-band {
    height: 140px;
  }

  .page-title-band-inner h1 {
    font-size: 16px;
    padding: 8px 20px;
  }

  .page-title-band.no-image {
    height: 70px;
  }
}

.page-content-wrap {
  background: var(--color-bg-cream);
  padding: 30px 10px;
}

.page-content {
  max-width: var(--site-width);
  margin: 0 auto;
  background: #fff;
  padding: 40px 50px;
}

@media (max-width: 720px) {
  .page-content {
    padding: 1rem;
  }
}

.page-content h2,
.entry-content h2 {
  background: var(--color-teal-accent);
  color: #fff;
  font-size: 22px;
  line-height: 1.5;
  padding: 12px 20px;
  margin: 1.8em 0 1em;
  border-left: 6px solid var(--color-teal-hover);
}

.page-content h2:first-child,
.entry-content h2:first-child {
  margin-top: 0;
}

/*--------------------------------------------------------------
# サブナビゲーション + スムーススクロール
--------------------------------------------------------------*/
.sub-nav {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 30px 10px;
  flex-wrap: wrap;
}

.sub-nav-item,
.sub-nav-item:link,
.sub-nav-item:visited {
  display: block;
  flex: 1 1 auto;
  min-width: 230px;
  text-align: center;
  white-space: nowrap;
  background: #2C7077;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 14px 20px;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease;
}

.sub-nav-item:hover,
.sub-nav-item:active {
  background: var(--color-teal-dark);
  color: #fff;
  text-decoration: none;
}

/* スムーススクロール + ヘッダー分のオフセット */
html {
  scroll-behavior: smooth;
}

h2[id] {
  scroll-margin-top: 90px; /* stickyヘッダーの高さ分ずらす */
}

@media (max-width: 640px) {
  .sub-nav {
    flex-direction: column;
    gap: 1px;
  }
}

/* 会員エリアのサブナビ（page-member-area.php / archive-member_notice.php /
   single-member_notice.php）専用: 4列固定、5個目以降は次の行へ左詰め。
   .sub-nav は本文中の目次ナビ（例: ごあいさつページ）等でも汎用的に使われて
   いるため、そちらに影響しないよう .sub-nav--member にだけ適用する */
.sub-nav.sub-nav--member {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: normal;
}
.sub-nav--member .sub-nav-item {
  flex: none;
  min-width: 0;
  font-size: 13px; /* 15px → 13px */
  padding: 10px 14px; /* 14px 20px → 10px 14px */
}

@media (max-width: 640px) {
  .sub-nav.sub-nav--member {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .sub-nav.sub-nav--member {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*--------------------------------------------------------------
# 404ページ 検索フォーム周りの余白
--------------------------------------------------------------*/
.error-404 .search-form {
  display: block;
  margin: 24px 0 40px;
}

.error-404 .widget {
  margin-bottom: 40px;
}

/*--------------------------------------------------------------
# 会員ページ（page-member.php / sidebar-member.php）
--------------------------------------------------------------*/
.sub-nav-wrap {
  background: var(--color-bg-cream);
}

/* 2カラムレイアウト */
.member-page-layout {
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  gap: 30px;
  padding: 30px 10px;
  align-items: flex-start;
}
.member-page-main {
  flex: 2;
  min-width: 0;
}

/* 会員ページ本文: 見出し(h1〜h6)〜本文まで、通常より一段小さいサイズにする */
.member-page-main {
  font-size: 16px; /* 本文 18px → 16px */
}
.member-page-main h1 { font-size: 30px; } /* 36px → 30px */
.member-page-main h2 { font-size: 26px; } /* 30px → 26px */
.member-page-main h3 { font-size: 22px; } /* 26px → 22px */
.member-page-main h4 { font-size: 20px; } /* 22px → 20px */
.member-page-main h5 { font-size: 18px; } /* 20px → 18px */
.member-page-main h6 { font-size: 16px; } /* 18px → 16px */

.member-page-main .page-content h2,
.member-page-main .entry-content h2 {
  font-size: 20px; /* 22px → 20px（帯付き見出し） */
}

.member-page-main .notice-single-title {
  font-size: 18px; /* 20px → 18px */
}

.member-page-main .notice-single .entry-content {
  font-size: 14px; /* 15px → 14px */
}

.member-page-main .notice-list-title {
  font-size: 15px; /* 17px → 15px */
}

.member-page-main .notice-list-excerpt {
  font-size: 13px; /* 14px → 13px */
}

.member-page-main .notice-tab {
  font-size: 13px; /* 14px → 13px */
}

/* カテゴリタブ */
.notice-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.notice-tab {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text-dark);
  opacity: 0.6;
}
/* button.notice-tab（医療機関案内のエリア絞り込みボタン）はブラウザ既定の
   ボタン装飾をリセットし、a.notice-tab と同じ見た目にする */
button.notice-tab {
  background: none;
  border: none;
  padding: 0 0 12px;
  cursor: pointer;
}
.notice-tab.active {
  color: var(--color-orange);
  opacity: 1;
  font-weight: 700;
  border-bottom: 2px solid var(--color-orange);
  padding-bottom: 10px;
}

/* 記事リスト */
.notice-list-item {
  display: block;
  color: var(--color-text-dark);
  border: 1px solid rgba(171,219,224,0.75);
  padding: 20px;
  margin-bottom: 16px;
}
.notice-list-date {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 6px;
}
.notice-list-badge {
  display: inline-block;
  background: var(--color-orange);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.notice-list-title {
  font-family: var(--font-heading);
  font-size: 17px;
  color: var(--color-teal-dark);
  margin-bottom: 8px;
}
.notice-list-excerpt {
  font-size: 14px;
  opacity: 0.75;
}

/* 個別記事（single-member_notice.php） */
.notice-single {
  display: block;
  color: var(--color-text-dark);
  border: 1px solid rgba(171,219,224,0.75);
  padding: 30px;
  margin-bottom: 30px;
}
.notice-single-title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-teal-dark);
  margin: 10px 0 20px;
}
.notice-single .entry-content {
  font-size: 15px;
  line-height: 1.8;
}
.notice-single .entry-footer {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(171,219,224,0.75);
  font-size: 13px;
  opacity: 0.75;
}

/* サイドバー */
.member-sidebar {
  flex: 1;
  min-width: 260px;
}
.sidebar-block {
  margin-bottom: 30px;
}
.sidebar-block-title {
  background: var(--color-teal-accent);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  padding: 12px 16px;
  margin-bottom: 0;
}
.sidebar-notice-item {
  display: block;
  color: var(--color-text-dark);
  border: 1px solid var(--color-orange);
  border-top: none;
  padding: 14px 16px;
}
.sidebar-notice-title {
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.sidebar-notice-cat {
  font-size: 11px;
  color: var(--color-orange);
  margin-bottom: 4px;
}
.sidebar-notice-date {
  font-size: 11px;
  opacity: 0.6;
}
.sidebar-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--color-orange);
  border-top: none;
}
.sidebar-archive-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-text-dark);
  border-bottom: 1px solid rgba(200, 120, 40, 0.25);
  transition: background-color .2s ease, color .2s ease;
}
.sidebar-archive-list li:last-child a {
  border-bottom: none;
}
.sidebar-archive-list li a:hover {
  background: rgba(200, 120, 40, 0.1);
  color: var(--color-orange);
}
.archive-count {
  font-size: 12px;
  opacity: 0.5;
}
.sidebar-archive-toggle {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: none;
  border: 1px solid var(--color-orange);
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.sidebar-archive-toggle:hover {
  background: var(--color-orange);
  color: #fff;
}

@media (max-width: 780px) {
  .member-page-layout {
    flex-direction: column;
  }
}

/* ページネーション（会員ページ一覧） */
.notice-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.notice-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-text-dark);
  background: #fff;
  border: 1px solid var(--color-orange);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.notice-pagination a.page-numbers:hover {
  background: var(--color-orange);
  color: #fff;
}
.notice-pagination .page-numbers.current {
  background: var(--color-orange);
  color: #fff;
}
.notice-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* 前後の記事ナビゲーション（single.php / single-member_notice.php など） */
.post-navigation {
  max-width: var(--site-width);
  margin: 30px auto 40px;
}
.post-navigation .nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1 1 260px;
}
.post-navigation .nav-next {
  text-align: right;
}
.post-navigation a {
  display: block;
  padding: 16px 20px;
  border: 1px solid rgba(171,219,224,0.75);
  transition: background-color .2s ease, border-color .2s ease;
}
.post-navigation a:hover {
  background: rgba(171,219,224,0.15);
  border-color: var(--color-teal-accent);
}
.post-navigation .nav-subtitle {
  display: block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-teal-hover);
  margin-bottom: 6px;
}
.post-navigation .nav-title {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
  line-height: 1.5;
}

/*--------------------------------------------------------------
# 医療機関案内テーブル（hospital-recruit-table）
--------------------------------------------------------------*/

/* このアーカイブページのみ .page-content の左右パディングを外し、
   テーブルにフル幅（980px）を使わせる。post-type-archive-medical_institution は
   WordPress が自動付与する body class なので他ページには影響しない。 */
.post-type-archive-medical_institution .page-content {
  padding-left: 0;
  padding-right: 0;
}

/* エリア絞り込みボタンは中央寄せにする（.notice-tabs は member_notice 側と
   共用のため、ここでは mi-area-filter だけを対象に上書きする） */
.mi-area-filter {
  justify-content: center;
}

/*--------------------------------------------------------------
# 地区マップセクション（mi-map-section）
--------------------------------------------------------------*/
.mi-map-section {
  /* align-items: center は付けない。子要素( .mi-map-main 等)の width: 100% が
     正しくセクション全幅を基準に解決されるように stretch（既定）のままにする。
     中央寄せは各子要素側で max-width + margin: 0 auto によって行う。 */
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  margin-bottom: 10px;
}

/* 説明文（地図の上に小さめのキャプション風に表示） */
.mi-map-notes {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-dark);
  opacity: 0.8;
  text-align: center;
}
.mi-map-notes p {
  margin: 0 0 6px;
}
.mi-map-notes .mi-map-updated {
  font-size: 11px;
  opacity: 0.85;
}
.mi-map-notes .mi-map-warning {
  color: var(--color-pink-deep);
  opacity: 1;
  font-size: 11px;
  margin-bottom: 4px;
}

/* 中央: 地図＋ボタン＋PDFボタン */
.mi-map-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.mi-map-all-btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  background: var(--color-teal-hover);
  color: #fff;
  border: 1px solid var(--color-teal-hover);
  padding: 10px 28px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.mi-map-all-btn:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}
.mi-map-all-btn.is-active {
  background: var(--color-orange);
  border-color: var(--color-orange);
}

.mi-map-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}
.mi-map-wrap svg {
  display: block;
  width: 100%;
  height: auto;
}
.mi-map-wrap .mi-region {
  cursor: pointer;
  transition: opacity .15s ease;
}
.mi-map-wrap .mi-region:hover {
  opacity: 0.75;
}
.mi-map-wrap .mi-region.is-active {
  stroke: var(--color-teal-dark);
  stroke-width: 16;
}

.mi-map-buttons {
  position: absolute;
  inset: 0;
}
.mi-map-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-dark);
  border: 1px solid var(--color-teal-hover);
  padding: 5px 10px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.mi-map-btn:hover {
  background: var(--color-teal-accent);
  color: #fff;
}
.mi-map-btn.is-active {
  background: var(--color-teal-dark);
  color: #fff;
  border-color: var(--color-teal-dark);
}

.mi-map-pdf-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.mi-map-pdf-btn:hover {
  background: var(--color-orange);
  color: #fff;
}

.table-scroll-wrap {
  /* .page-content の左右パディングを0にしたページ専用のため、
     --site-width: 980px をほぼそのまま使える（少し余白を残して960px）。
     980px未満（720px〜980pxの中間幅）やスマホ幅では table-layout: fixed の合計幅が
     画面より広くなるため、このoverflow-xによる横スクロールが引き続き有効に働く。 */
  max-width: 960px;
  margin: 30px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hospital-recruit-table {
  width: 100%;
  min-width: 640px; /* スマホでは横スクロール発生、崩れ防止 */
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}

.hospital-recruit-table thead th {
  background: var(--color-teal-dark);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-align: left;
  padding: 10px 8px; /* 13列を980px幅に収めるため左右を詰める */
  white-space: nowrap;
}

/* 列幅の個別調整（ビューポート980px時に横スクロール不要になるよう調整。ホームページ列は削除済み） */
.hospital-recruit-table th.col-name { width: 248px; }
.hospital-recruit-table th.col-city { width: 68px; }

/* CSV元列名の正式表記＋<br>改行の4項目。狭い幅に収めるため
   自然な単語区切りだけでなく漢字の途中でも折り返す */
.hospital-recruit-table th.col-wrap {
  white-space: normal;
  word-break: break-all;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.hospital-recruit-table th.col-pregnancy { width: 76px; }
.hospital-recruit-table th.col-cervical { width: 82px; }
.hospital-recruit-table th.col-hpv { width: 76px; }
.hospital-recruit-table th.col-infertility { width: 78px; }

/* ○のみが入る短い列（母体保護指定医など、ラベル文言は変更しない）。
   980px幅に収めるため見出しは自然に折り返す（2文字/行程度を確保し1文字ずつの縦積みを避ける） */
.hospital-recruit-table th.col-short {
  white-space: normal;
  line-height: 1.4;
}
.hospital-recruit-table th.col-maternal { width: 58px; }
.hospital-recruit-table th.col-adolescent { width: 50px; }
.hospital-recruit-table th.col-menopause { width: 50px; }
.hospital-recruit-table th.col-smoking { width: 46px; }
.hospital-recruit-table th.col-sports { width: 52px; }
.hospital-recruit-table th.col-osteoporosis { width: 60px; }

.hospital-recruit-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background-color .2s ease;
}

.hospital-recruit-table tbody tr:nth-child(even) {
  background: rgba(171, 219, 224, 0.12); /* 縞模様、teal-lightを薄く */
}

.hospital-recruit-table tbody tr:hover {
  background: rgba(87, 183, 192, 0.15); /* teal-accentを薄く */
}

.hospital-recruit-table td {
  padding: 10px 8px;
  vertical-align: middle;
  color: var(--color-text-dark);
  overflow-wrap: break-word;
}

.hospital-recruit-table td:first-child {
  font-family: var(--font-heading);
  font-weight: 500;
}

.hospital-recruit-table td a {
  color: var(--color-teal-hover);
  text-decoration: underline;
  text-decoration-color: rgba(44, 112, 119, 0.35);
  text-underline-offset: 2px;
  transition: color .2s ease;
}

.hospital-recruit-table td a:hover {
  color: var(--color-teal-dark);
  text-decoration-color: var(--color-teal-dark);
}

/* スクロール可能であることを示す簡易ヒント（スマホのみ表示） */
.table-scroll-wrap::after {
  content: "";
}

@media (max-width: 720px) {
  .table-scroll-wrap {
    position: relative;
    margin: 20px 10px;
    box-shadow: inset -20px 0 15px -15px rgba(0,0,0,0.08); /* 右端に軽いグラデ影、横スクロール可能を示唆 */
  }

  /* スマホでは列幅を詰め、合計約680pxに抑えて横スクロール量を減らす */
  .hospital-recruit-table {
    font-size: 12px;
    min-width: 0;
  }

  .hospital-recruit-table thead th {
    font-size: 11px;
    letter-spacing: 0;
    line-height: 1.4;
  }

  .hospital-recruit-table thead th,
  .hospital-recruit-table td {
    padding: 8px 4px;
  }

  .hospital-recruit-table th.col-name { width: 130px; }
  .hospital-recruit-table th.col-city { width: 56px; }
  .hospital-recruit-table th.col-pregnancy,
  .hospital-recruit-table th.col-cervical,
  .hospital-recruit-table th.col-hpv,
  .hospital-recruit-table th.col-infertility { width: 64px; }
  .hospital-recruit-table th.col-maternal,
  .hospital-recruit-table th.col-adolescent,
  .hospital-recruit-table th.col-menopause,
  .hospital-recruit-table th.col-smoking,
  .hospital-recruit-table th.col-sports,
  .hospital-recruit-table th.col-osteoporosis { width: 40px; }

  /* ○◎だけの列は中央寄せで読みやすく */
  .hospital-recruit-table td:nth-child(n+3) {
    text-align: center;
  }

  /* 横スクロール中も医療機関名が見えるよう1列目を固定 */
  .hospital-recruit-table th.col-name,
  .hospital-recruit-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    box-shadow: 2px 0 4px -2px rgba(0,0,0,0.15);
  }
  .hospital-recruit-table td:first-child {
    background: #fff;
  }
  .hospital-recruit-table tbody tr:nth-child(even) td:first-child {
    background: linear-gradient(rgba(171, 219, 224, 0.12), rgba(171, 219, 224, 0.12)), #fff;
  }
  .hospital-recruit-table tbody tr:hover td:first-child {
    background: linear-gradient(rgba(87, 183, 192, 0.15), rgba(87, 183, 192, 0.15)), #fff;
  }
}

/*--------------------------------------------------------------
# 様式ダウンロード（forms-container）
--------------------------------------------------------------*/
.forms-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: var(--font-body);
    line-height: 1;
    color: var(--color-text-dark);
}
.forms-container .page-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-teal-dark);
    border-bottom: 2px solid var(--color-teal-dark);
    padding-bottom: 8px;
    margin-bottom: 8px;
}
.forms-container .update-date {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    opacity: 0.6;
    text-align: right;
    margin-bottom: 30px;
}
.forms-container .form-section {
    background: #fff;
    border: 1px solid rgba(171, 219, 224, 0.75);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.forms-container .section-title {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.25rem;
    color: #fff;
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(171, 219, 224, 0.5);
}
/* 改行させずに1行で配置する設定 */
.forms-container .form-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(171, 219, 224, 0.5);
    white-space: nowrap; /* 全体の改行を禁止 */
    gap: 12px;
}
.forms-container .form-item:last-child {
    border-bottom: none;
}
/* 様式名が長すぎる場合は折り返さず「...」で収める */
.forms-container .form-name {
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--color-text-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.forms-container .download-buttons {
    display: flex;
    gap: 16px;
    flex-shrink: 0; /* リンク側が縮むのを防止 */
    white-space: nowrap;
}
/* ボタン風の塗りつぶしはやめて、種類ごとに色分けしたテキストリンクに */
.forms-container .btn {
    display: inline-block;
    padding: 0;
    background: none;
    font-size: 0.85rem;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}
.forms-container .btn:hover {
    opacity: 0.65;
}
.forms-container .btn-pdf {
    color: var(--color-pink-deep) !important;
}
.forms-container .btn-excel {
    color: var(--color-teal-hover) !important;
}
.forms-container .btn-word {
    color: var(--color-orange) !important;
}
.forms-container .notice-box {
    background-color: var(--color-bg-cream);
    border-left: 4px solid var(--color-orange);
    padding: 12px 16px;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--color-text-dark);
}
.forms-container .notice-box p {
    margin: 0;
    white-space: normal; /* 注意書き文章のみ折り返しを許可 */
}

/* スマホ: 様式名+ボタンの横並び(nowrap)が画面幅からはみ出すため、
   縦積みに変更して折り返しを許可する */
@media (max-width: 640px) {
    .forms-container .form-section {
        padding: 16px;
    }
    .forms-container .section-title {
        font-size: 1.05rem;
    }
    .forms-container .form-item {
        flex-wrap: wrap;
        align-items: flex-start;
        white-space: normal;
        row-gap: 6px;
    }
    .forms-container .form-name {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.4;
        flex: 1 1 100%;
    }
    .forms-container .download-buttons {
        white-space: normal;
        flex: 1 1 100%;
        justify-content: flex-start;
    }
}

/*--------------------------------------------------------------
# 役員紹介（officers-container）
--------------------------------------------------------------*/
/* 全体枠 */
.officers-container {
    max-width: 900px;
    margin: 0 auto;
}

/* 各セクション */
.officers-section {
    margin-bottom: 40px;
}

/* 見出し */
.officers-section__title {
    font-size: 1.3rem;
    border-left: 4px solid #1a365d;
    padding-left: 10px;
    margin-bottom: 4px;
}

.officers-section__term {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 16px;
}

/* テーブルスタイル */
.officers-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.officers-table th, 
.officers-table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.officers-table th {
    background-color: #f7fafc;
}

/*--------------------------------------------------------------
# 各種リンクページ（links-page）
--------------------------------------------------------------*/
.links-page .link-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links-page .link-list-item {
  background: rgba(255, 255, 255, 0);
  border: 1px solid var(--color-teal-light);
}

.links-page .link-list-item a {
  display: block;
  padding: 14px 18px;
  color: #000;
  text-decoration: none;
}

.links-page .link-list-item a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .links-page .link-list-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# 会員エリア パスワード認証フォーム（faog-member-area プラグイン）
--------------------------------------------------------------*/
.member-auth-form-wrap {
  max-width: 420px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.member-auth-form-wrap h1 {
  font-family: var(--font-heading);
  font-size: 22px;
  margin-bottom: 20px;
}
.member-auth-form-wrap .error {
  color: var(--color-pink-deep);
  font-size: 14px;
  margin-bottom: 16px;
}
.member-auth-form-wrap form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.member-auth-form-wrap input[type="password"] {
  flex: 1 1 220px;
  padding: 10px 14px;
  border: 1px solid rgba(171,219,224,0.75);
  font-size: 15px;
}
.member-auth-form-wrap button {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  background: var(--color-teal-hover);
  color: #fff;
  border: 1px solid var(--color-teal-hover);
  padding: 10px 24px;
  cursor: pointer;
  transition: background-color .2s ease;
}
.member-auth-form-wrap button:hover {
  background: var(--color-teal-dark);
  border-color: var(--color-teal-dark);
}
