/* 最適化されたCSS - kichon.com用 */

/* CSS変数定義 */
:root {
    --color-primary: #f2849e;
    --color-text: #585858;
    --color-border: #c9c9c9;
    --color-bg: #ffffff;
    --font-family: "Source Sans Pro", Helvetica, sans-serif;
    --font-size-base: 16pt;
    --font-size-tablet: 12pt;
    --font-size-mobile: 11pt;
    --container-padding: 2.5em;
    --container-padding-mobile: 1.25em;
    --grid-gap: 2em;
    --grid-gap-mobile: 1em;
}

/* 基本リセット（最小限） */
*, *:before, *:after {
    box-sizing: border-box;
}

body, h1, h2, h3, h4, h5, h6, p, ul, li {
    margin: 0;
    padding: 0;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 300;
    line-height: 1.75;
}

/* 基本要素 */
a {
    color: var(--color-text);
    text-decoration: none;
    border-bottom: dotted 1px rgba(88, 88, 88, 0.5);
    transition: border-bottom-color 0.2s ease, color 0.2s ease;
}

a:hover {
    color: var(--color-primary);
    border-bottom-color: transparent;
}

strong, b { font-weight: 900; }
em, i { font-style: italic; }
p { margin: 0 0 2em 0; }

/* ヘッディング */
h1 {
    font-size: 2.75em;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1em 0;
    letter-spacing: -0.035em;
}

h2, h3, h4, h5, h6 {
    font-weight: 900;
    line-height: 1.5;
    margin: 0 0 2em 0;
    text-transform: uppercase;
    letter-spacing: 0.35em;
}

h2 { font-size: 1.1em; }
h3 { font-size: 1em; }

/* レイアウト - 簡素化されたグリッド */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -var(--grid-gap);
}

.row > * {
    padding: 0 var(--grid-gap);
    flex: 1;
}

.col-6 { width: 50%; }
.col-12 { width: 100%; }

/* ヘッダー */
#header {
    padding: 8em 0 0.1em 0;
}

#header .logo {
    display: inline-block;
    color: inherit;
    font-weight: 900;
    letter-spacing: 0.35em;
    margin: 0 0 2.5em 0;
    text-transform: uppercase;
    border-bottom: 0;
}

#header nav {
    position: fixed;
    right: 2em;
    top: 2em;
    z-index: 10000;
}

#header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

#header nav ul li a {
    display: block;
    position: relative;
    height: 3em;
    line-height: 3em;
    padding: 0 1.5em;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 900;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

#header nav ul li a[href="#menu"] {
    -webkit-tap-highlight-color: transparent;
    width: 4em;
    text-indent: 4em;
    font-size: 1em;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
}

#header nav ul li a[href="#menu"]:before, 
#header nav ul li a[href="#menu"]:after {
    transition: opacity 0.2s ease;
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2em 2em;
}

#header nav ul li a[href="#menu"]:before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 8px%3B stroke: %23f2849e%3B %7D%3C/style%3E%3Cline x1='0' y1='25' x2='100' y2='25' /%3E%3Cline x1='0' y1='50' x2='100' y2='50' /%3E%3Cline x1='0' y1='75' x2='100' y2='75' /%3E%3C/svg%3E");
    opacity: 0;
}

#header nav ul li a[href="#menu"]:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 8px%3B stroke: %23585858%3B %7D%3C/style%3E%3Cline x1='0' y1='25' x2='100' y2='25' /%3E%3Cline x1='0' y1='50' x2='100' y2='50' /%3E%3Cline x1='0' y1='75' x2='100' y2='75' /%3E%3C/svg%3E");
    opacity: 1;
}

#header nav ul li a[href="#menu"]:hover:before {
    opacity: 1;
}

#header nav ul li a[href="#menu"]:hover:after {
    opacity: 0;
}

/* メニュー */
#wrapper {
    transition: opacity 0.45s ease;
    opacity: 1;
    font-size: 18px;
}

#menu {
    transform: translateX(22em);
    transition: transform 0.45s ease, visibility 0.45s;
    position: fixed;
    top: 0;
    right: 0;
    width: 22em;
    max-width: 80%;
    height: 100%;
    background: var(--color-text);
    color: var(--color-bg);
    visibility: hidden;
    z-index: 10002;
    -webkit-overflow-scrolling: touch;
}

#menu > .inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2.75em;
    opacity: 0;
    overflow-y: auto;
    transition: opacity 0.45s ease;
    -webkit-overflow-scrolling: touch;
}

#menu > .inner > ul {
    list-style: none;
    margin: 0 0 1em 0;
    padding: 0;
}

#menu > .inner > ul > li {
    padding: 0;
    border-top: solid 1px rgba(255, 255, 255, 0.15);
}

#menu > .inner > ul > li a {
    display: block;
    padding: 1em 0;
    line-height: 1.5;
    border: 0;
    color: inherit;
}

#menu > .inner > ul > li:first-child {
    border-top: 0;
    margin-top: -1em;
}

#menu > .close {
    transition: opacity 0.45s ease, transform 0.45s ease;
    transform: scale(0.25) rotate(180deg);
    -webkit-tap-highlight-color: transparent;
    display: block;
    position: absolute;
    top: 2em;
    left: -6em;
    width: 6em;
    text-indent: 6em;
    height: 3em;
    border: 0;
    font-size: 1em;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    white-space: nowrap;
}

#menu > .close:before, #menu > .close:after {
    transition: opacity 0.2s ease;
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 2em 2em;
}

#menu > .close:before {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 8px%3B stroke: %23f2849e%3B %7D%3C/style%3E%3Cline x1='15' y1='15' x2='85' y2='85' /%3E%3Cline x1='85' y1='15' x2='15' y2='85' /%3E%3C/svg%3E");
    opacity: 0;
}

#menu > .close:after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 8px%3B stroke: %23585858%3B %7D%3C/style%3E%3Cline x1='15' y1='15' x2='85' y2='85' /%3E%3Cline x1='85' y1='15' x2='15' y2='85' /%3E%3C/svg%3E");
    opacity: 1;
}

#menu > .close:hover:before {
    opacity: 1;
}

#menu > .close:hover:after {
    opacity: 0;
}

body.is-menu-visible #wrapper {
    opacity: 0.25;
    pointer-events: none;
    cursor: default;
}

body.is-menu-visible #menu {
    transform: translateX(0);
    visibility: visible;
}

body.is-menu-visible #menu > * {
    opacity: 1;
}

body.is-menu-visible #menu .close {
    transform: scale(1.0) rotate(0deg);
    opacity: 1;
}

/* メインコンテンツ */
#main {
    padding: 0 0 6em 0;
}

#wrapper > * > .inner {
    width: 100%;
    max-width: 68em;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    font-size: 18px;
}

/* タイル（ギャラリー） */
.tiles {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin: -2.5em 0 0 -2.5em;
}

.tiles article {
    transition: transform 0.5s ease, opacity 0.5s ease;
    position: relative;
    width: calc(50% - 0.5em);
    margin: 0em 0 0 0em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tiles article > .image {
    transition: transform 0.5s ease;
    position: relative;
    display: block;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.tiles article > .image img {
    display: block;
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
}

.tiles article > .image:before {
    pointer-events: none;
    transition: background-color 0.5s ease, opacity 0.5s ease;
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 1;
}

.tiles article > .image:after {
    pointer-events: none;
    transition: opacity 0.5s ease;
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cstyle%3Eline %7B stroke-width: 0.25px%3B stroke: %23ffffff%3B %7D%3C/style%3E%3Cline x1='0' y1='0' x2='100' y2='100' /%3E%3Cline x1='100' y1='0' x2='0' y2='100' /%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    opacity: 0.25;
    z-index: 2;
}

.tiles article > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background-color 0.5s ease, transform 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1em;
    border-radius: 4px;
    border-bottom: 0;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    z-index: 3;
}

.tiles article > a > :last-child {
    margin: 0;
}

.tiles article > a:hover {
    color: #ffffff;
}

.tiles article > a h2 {
    margin: 0;
}

.tiles article > a .content {
    transition: max-height 0.5s ease, opacity 0.5s ease;
    width: 100%;
    max-height: 0;
    line-height: 1.5;
    margin-top: 0.35em;
    opacity: 0;
}

.tiles article > a .content > :last-child {
    margin-bottom: 0;
}

/* ホバー効果（タッチデバイス以外） */
body:not(.is-touch) .tiles article:hover > .image {
    transform: scale(1.1);
}

body:not(.is-touch) .tiles article:hover > .image:before {
    background-color: #333333;
    opacity: 0.35;
}

body:not(.is-touch) .tiles article:hover > .image:after {
    opacity: 0;
}

body:not(.is-touch) .tiles article:hover .content {
    max-height: 15em;
    opacity: 1;
}

/* タッチデバイス */
body.is-touch .tiles article .content {
    max-height: 15em;
    opacity: 1;
}

* + .tiles {
    margin-top: 2em;
}

/* 画像 */
.image {
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

.image img {
    border-radius: 4px;
    display: block;
}

.image.fit {
    display: block;
    margin: 0 0 2em 0;
    width: 100%;
}

.image.fit img {
    width: 100%;
}

/* ボタン */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
    appearance: none;
    background-color: transparent;
    border-radius: 4px;
    border: 0;
    box-shadow: inset 0 0 0 2px var(--color-text);
    color: var(--color-text);
    cursor: pointer;
    display: inline-block;
    font-size: 0.8em;
    font-weight: 900;
    height: 3.5em;
    letter-spacing: 0.35em;
    line-height: 3.45em;
    overflow: hidden;
    padding: 0 1.25em 0 1.6em;
    text-align: center;
    text-decoration: none;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button.icon:before {
    margin-right: 0.5em;
}

.button.fit {
    width: 100%;
}

.button:hover {
    color: var(--color-primary);
    box-shadow: inset 0 0 0 2px var(--color-primary);
}

.button:active {
    background-color: rgba(242, 132, 158, 0.1);
}

.button.small {
    font-size: 0.6em;
}

.button.large {
    font-size: 1em;
}

.button.primary {
    box-shadow: none;
    background-color: var(--color-text);
    color: var(--color-bg);
}

.button.primary:hover {
    background-color: var(--color-primary);
}

.button.primary:active {
    background-color: #ee5f81;
    color: var(--color-text);
}

.button.disabled, .button:disabled {
    pointer-events: none;
    opacity: 0.25;
    color: #ffffff;
}

/* 展開コンテナ（モバイル対応） */
.expand-container .expand-content {
    display: block;
}

/* リスト */
ul {
    list-style: disc;
    margin: 0 0 2em 0;
    padding-left: 1em;
}

ul li {
    padding-left: 0.5em;
}

/* アイコン */
.icon:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
    text-transform: none;
}

/* テーブル */
table {
    margin: 0 0 2em 0;
    width: 100%;
}

table td {
    padding: 0.75em;
    vertical-align: top;
}

table th {
    font-size: 0.9em;
    font-weight: 900;
    padding: 0 0.75em 0.75em 0.75em;
    text-align: left;
}

/* ユーティリティ */
.align-center { text-align: center; }
.align-left { text-align: left; }
.align-right { text-align: right; }

/* メディアクエリ - 統合版 */

/* タブレット */
@media screen and (max-width: 1280px) {
    body {
        font-size: var(--font-size-tablet);
    }
    
    .tiles {
        margin: -1em 0 0 -1em;
    }
    
    .tiles article {
        width: calc(33.33333% - 1em);
        margin: 1em 0 0 1em;
    }
}

/* モバイル */
@media screen and (max-width: 736px) {
    body {
        font-size: var(--font-size-mobile);
    }
    
    h1 {
        font-size: 2em;
        margin: 0 0 1em 0;
    }
    
    h2 {
        font-size: 1em;
    }
    
    h3 {
        font-size: 0.8em;
    }
    
    .tiles article {
        width: calc(50% - 1em);
        margin: 1em 0 0 1em;
    }
    
    .tiles article:hover > .image {
        transform: scale(1.0);
    }
    
    #header {
        padding: 4em 0 0.1em 0;
    }
    
    #header nav {
        right: 0.5em;
        top: 0.5em;
    }
    
    #main {
        padding: 0 0 4em 0;
    }
    
    #wrapper > * > .inner {
        padding: 0 var(--container-padding-mobile);
    }
    
    #menu {
        transform: translateX(16.5em);
        width: 16.5em;
    }
    
    #menu > .inner {
        padding: 2.75em 1.5em;
    }
    
    .expand-container .expand-content {
        display: none;
    }
    
    .expand-container .expand-content.is-visible {
        display: block;
    }
    
    .row {
        margin: 0 -var(--grid-gap-mobile);
    }
    
    .row > * {
        padding: 0 var(--grid-gap-mobile);
    }
}

/* 超小画面 */
@media screen and (max-width: 480px) {
    html, body {
        min-width: 320px;
    }
    
    h1 {
        font-size: 1.75em;
    }
    
    .tiles {
        margin: 0;
    }
    
    .tiles article {
        width: 100%;
        margin: 1.25em 0 0 0;
    }
    
    .col-6 {
        width: 100%;
    }
}

/* プリロード状態 */
body.is-preload *,
body.is-preload *:before,
body.is-preload *:after {
    animation: none !important;
    transition: none !important;
}

body.is-preload .tiles article {
    transform: scale(0.9);
    opacity: 0;
}



/* デスクトップでは常に表示 */
.expand-container .expand-content {
  display: block;
}

/* スマホでははじめ非表示 */
@media screen and (max-width: 736px) {
  .expand-container .expand-content {
    display: none;
  }
}

/* JavaScriptで追加されるクラス */
.expand-container .expand-content.is-visible {
  display: block !important;
}


#header nav ul li {
    background: transparent;
}



/* デスクトップでは常に表示 */
.expand-container .expand-content {
  display: block;
}

/* スマホでははじめ非表示 */
@media screen and (max-width: 736px) {
  .expand-container .expand-content {
    display: none;
  }
}

/* JavaScriptで追加されるクラス */
.expand-container .expand-content.is-visible {
  display: block !important;
}


/* スマホでの画像サイズを調整 */
			.image.main img {
			  max-width: 600px;
			  width: 100%;
	
				  height: auto;
			}

@media screen and (max-width: 736px) {
    /* 既存のCSSルール... */

    .image.main img {
        max-width: 100%;
        height: auto;
    }
}

/* 画像をレスポンシブにするためのルール */
img {
  max-width: 100%;
  height: auto;
}